[Gambas-user] Why is val() so roundabout?
Eilert
eilert-sprachen at ...221...
Wed Jun 22 16:34:56 CEST 2005
lordheavy schrieb:
>>So, is there a reason for this behaviour (maybe a question directly
>>going to Benoit - hey, what about your finger?), or is it a bug?
>>
>>Rolf
>>
>
>
> Perhaps becouse val("0") = 0 and val("something") <> 0 because it can't
> be eVALuate ? so it's NULL !
>
> I guess it's logical. Don't you ?
>
> Regards,
>
Yes, it is logical, but not very practical. In practice I just want to
know if there is a value, and if there is some character it cannot read
it's just 0. Well, there might be cases where an error might be
practical I have to admit, but in 99 % of my cases it isn't.
Rolf
More information about the User
mailing list