[Gambas-user] Bug in split() ? (1.0.13)

Benoit Minisini gambas at ...1...
Thu Jan 19 14:20:23 CET 2006


On Wednesday 18 January 2006 16:50, Eilert wrote:
> Benoit,
>
> >> The escape character is just checked at the beginning and at the end
> >> of a splitted element, i.e., in your case, just before a comma, just
> >> after, at the beginning or at the end of string. It allows you to
> >> have a comma inside a splitted element.
> >>
> >> I think this is not what you expected.
>
> Aha :-) so the point is that the escape character has to appear just in
> front of the character it's supposed to let through? When comma is the
> separator and % is the escape character, it would be %, to escape the
> comma?
>

No. The escape character must be the first and the last character of a 
splitted element.

And I ran your function with your five strings thousand times in a loop and 
didn't get any problem. I think you have to send your project to me.

Regards,

-- 
Benoit Minisini





More information about the User mailing list