Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric values and Inputbox
Message
From
27/08/2005 17:42:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
27/08/2005 17:32:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01044577
Message ID:
01044582
Views:
14
>>>Is it possible to force only numeric values on inputbox command?
>>
>>Set InputMask to something like "99999.99"
>
>I mean INPUTBOX() command. How to set inputmask?

According to the help (I am looking at version 8), it doesn't seem to have any such option. InputMask is not supported, and the default value has to be of type character.

I suggest you create your own function, which you might call NumericInput(), where you can provide all the functionality you want. You can use a custom form with a TextBox for this purpose.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform