[Gambas-user] Split Function (is it a BUG)
Bodard Fabien
gambasfr at ...11...
Mon Oct 25 23:01:38 CEST 2004
Le lundi 25 Octobre 2004 20:22, Charlie Reinl a écrit :
> Salut Benoit,
>
> if I split "myVar = Otto" like a = split("myVar = Otto", "=")
> then a[0] = "myVar " and a[1] = " Otto"
>
> Should the blanks be left ?
>
> Amicalment
> Charlie
Sorry for my bad answer :
in fact the separator seem to be a sole characters,
and gambas return the string that are each side of the separator characters,
"your string need be :
myvar=otto
you can do :
a = split(Trim("myVar = Otto"), "=")
Fabien
More information about the User
mailing list