Isnumeric ??

Ricky D

Well-Known Member
Licensed User
Longtime User
Is there a way to tell if a string is an integer? Vb has an Isnumeric function..

Do we have something like that in b4a?

Regards Ricky
 

bluejay

Active Member
Licensed User
Longtime User
IsNumber (Text As String) As Boolean
Tests whether the specified string can be safely parsed as a number.

To test if it is an integer....

Floor (Number As Double) As Double
Returns the largest double that is smaller or equal to the specified number and is equal to an integer.

ie if X - Floor(X) then ....

BlueJay
 
Upvote 0
Top