Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with get field on the screen
Message
From
23/03/1998 16:22:33
 
 
To
23/03/1998 16:17:07
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00086535
Message ID:
00086537
Views:
51
>Hi,
>I am having a problem when trying to enter a numeric value into a txtbox. The length of my database field is ,let say, 10 numeric and 2 decimal and the size of the txtbox on the screen is much bigger so it can get greater number. I don't use any mask for my field because I want to enter either 9999999.99 or 9999999999. My question is: how can I check for the input, because when i enter a very big number I get an error saying numeric overflow. Is there any way? I tried converting to char but it didn't work.I know that my get object on the screen has to be as big as my field's size. How can I check how many digits I entered?
>Thank you very much.
>Vlad

IMO, Textbox.Inputmask="9999999.99" is natural for N 10.2 field. It doesn't matter will user enter decimals or not. If you want to allow entering bigger number, e.g. 9999999999 then the first thing you should do is to change table field (controlsource) width.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform