[Gambas-devel] gb3 Split() problem

Fabien Bodard gambas.fr at ...176...
Mon Jan 4 13:22:41 CET 2010


2010/1/4 Kadaitcha Man <nospam.nospam.nospam at ...176...>:
> 2010/1/4 Benoît Minisini <gambas at ...1...>:
>
>> Yes, I have added an explicit warning to the Split documentation, as
>> apparently it was not clear enough.
>
> Ok, I don't have an issue with that because I can deal with it, but
> about this...
>
> StringArray = Split ( String AS String [ , Separators AS String ,
> Escape AS String , IgnoreVoid AS Boolean , KeepEscape AS Boolean ] )
>
> I will change "Separators AS String" to "Separator AS String", in
> accordance with what the UI actually says.
>
> I will also fix this, which uses two characters:
>
> Elt = Split(" Gambas Almost Means BASIC  !\n'Do you agree ?'", " \n", "'")
>
> " \n" is wrong.
"/n" represent just one character in fact ... chr(10) it's a special
escaped character



>
> I will also simplify the example:
>
> Elt = Split(" Gambas Almost Means BASIC  !\n'Do you agree ?'", " \n", "'")
>
> The control characters, question marks. and exclamation marks make it
> extremely difficult to immediately understand that the separator is
> singular.
>
> Are you ok with that?
>
> Regards,
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
>




More information about the Devel mailing list