[Gambas-user] Bug in the eval Function

Benoit Minisini gambas at ...1...
Sat May 20 15:05:20 CEST 2006


On Saturday 20 May 2006 12:19, Jonas Baggett wrote:
> Hello, I found a bug with gambas 1.9.29 in the eval Function :
>
> ' after this line will be executed, strPattern will be "\"asdf\" LIKE
> \"*\"" strPattern = Chr(34) & "asdf" & Chr(34) & " LIKE " & Chr(34) & "*" &
> Chr(34)
>
> 'strangely, after this line will be executed, strPattern change its
> value to "\"asdf\x00 LIKE \"*\x00"
> blnResult = Eval(strPattern)
>
> 'after this line will be executed a message error appears telling "Type
> mismatch : wanted float got string instead"
> blnResult = Eval(strPattern)
>

Yes, there is a bug both in stable and development version that modifies the 
original string. I will fix it in the next versions.

As for the error message, I think you should apply the 1.9.29 patch to get the 
correct result.

Regards,

-- 
Benoit Minisini





More information about the User mailing list