Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking integer
Message
 
 
To
27/05/2003 07:26:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00793017
Message ID:
00793029
Views:
31
>Who can help me?
>How can I check if the variable is integer or numeric.
>For example: if the user entered 2 so it's O.K, if the user entered 2.5 he will get messagebox with some message.
>Thank you for helping
>Chaim
lnVal =2.5
? (lnVal = INT(lnVal))         && Returns .T. if value is a whole number
* If 2.0 is also invalid entry, than
? NOT ("." $ PADL(lnVal, 10))  && Returns .T. if value is a whole number
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform