[Gambas-user] Bug in the eval Function

ron ronstk at ...239...
Sat May 20 11:09:26 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"
What do you mean with "executed" exactly?
strPattern is not a valid calculate expresion.

> blnResult = Eval(strPattern)
> 
> 'after this line will be executed a message error appears telling "Type 
> mismatch : wanted float got string instead"
> blnResult = Eval(strPattern)
> 



More information about the User mailing list