[Gambas-user] Convertion bug or problemm undestood !!!
Benoit Minisini
gambas at ...1...
Wed Nov 12 19:58:03 CET 2003
Le Mercredi 12 Novembre 2003 00:31, Rob a écrit :
> On Tuesday 11 November 2003 14:27, Benoit Minisini wrote:
> > TRY vVal = Val(sData)
> > RETURN vVal
> >
> > I know that this is not the standard Basic behaviour, but
> > Gambas ALMOST means Basic! :-)
>
> Shouldn't IsNumber() be used in this particular case?
>
> Rob
>
>
You can, but using TRY is faster than doing the test yourself in Gambas !
Except if the case where the TRY fails happens the more frequently.
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list