[Gambas-user] Opposite of Split
Laurent Carlier
lordheavy at ...512...
Thu Jun 16 16:54:18 CEST 2005
Le Jeudi 16 Juin 2005 16:29, Eilert a écrit :
> Hi,
>
> 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?
>
> Rolf
>
Something like that ? :
PUBLIC SUB Main()
DIM myarray AS NEW Variant[]
DIM myvar AS Variant
DIM mystr AS String
myarray.Push(12)
myarray.Push("a string")
myarray.Push(Now)
FOR EACH myvar IN myarray
mystr = mystr & CStr(myvar) & " "
NEXT
PRINT mystr
END
--
Laurent Carlier
jabber : LordHeavy at ...943...
More information about the User
mailing list