[Gambas-user] Gambas 3.5.2 pre-release

Kende Krisztián nemh at ...2007...
Tue Jan 7 14:36:55 CET 2014


2014-01-07 14:30 keltezéssel, Benoît Minisini írta:
> Le 07/01/2014 14:28, Benoît Minisini a écrit :
>> Le 07/01/2014 14:26, Kende Krisztián a écrit :
>>> 2014-01-07 14:21 keltezéssel, Kende Krisztián írta:
>>>> I found this Like operator bug:
>>>>
>>>> Print " " Like "  "
>>> With double space:
>>>
>>> Print "  " Like "  "
>>>
>>>> or
>>>>
>>>>         Print "a  a" Like "*  *"
>>>>
>>>> or... with double space
>>>>
>>>> Output: False
>>>>
>> Damn it. :-(
>>
> Actually, a single space in a pattern eats all corresponding spaces in
> the string. So two spaces in the pattern never match...
>

Never mind. I use this code:

Print InStr(string, "  ") = 0





More information about the User mailing list