> Hi,
>
> Is there an inbuilt function in Gambas 2 (2.21) to check if a string
> contains a valid number?
>
>
> Thanks,
> Vikram Nair
No, but you can do that:
DIM MyNumber AS Float
TRY MyNumber = Val(MyString)
IF ERROR THEN PRINT "Not a valid number"
In Gambas3, IsNumber() does what you want.
Hi,
Is there an inbuilt function in Gambas 2 (2.21) to check if a string contains a
valid number?
Thanks,
Vikram Nair
--
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss preven