Why/when to use .concat or the '+' sign

Questions, tips and tricks and techniques for scripting in Servoy

Why/when to use .concat or the '+' sign

Postby IT2Be » Mon Nov 10, 2003 12:46 pm

I was playing with my HowTo example and found that string.concat is not (always) needed.

binding two or more strings can be done like:

a = a.concat(b,c) or

a = a + b + c

When or why should we use one or the other?

Thanks
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany

Postby Jan Blok » Mon Nov 10, 2003 4:04 pm

There is no difference
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam


Return to Methods

Who is online

Users browsing this forum: No registered users and 3 guests