[Gambas-user] Opposite of Split
Rob
sourceforge-raindog2 at ...94...
Thu Jun 16 17:33:14 CEST 2005
On Thursday 16 June 2005 10:29, Eilert wrote:
> is there an opposite of the Split function? Something like "join"
> or so that can put together the contents of an array into a string,
> separated by any separator?
Yes, there is a Join(), but it's a method of the array class, not a
function per se.
dim x as string
dim a as string[]
x = "a,b,c,d,e"
a = split(x, ",")
print a.join("/")
Output should be:
a/b/c/d/e
http://www.binara.com/gambas-wiki/static/Gambas/GbStringArrayMJoin.html
Rob
More information about the User
mailing list