Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do Not allow minus numbers to be entered
Message
From
19/10/2014 06:53:31
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01609221
Message ID:
01609620
Views:
83
>Anyway with a Format or some other way to not allow a minus number to be entered into a textbox? I would like the minus sign not to even be entered into the text box. All the other data is numeric like 999999.00.
>
>Thanks in advance...
>
>Mel

Hi Mel.

This thread is a bit old now.

I know there was a cheap way, but it needs some time. Today I run into it so here it is.

It will not prevent the user frome entering 0 - but it will prevent from using it

The stuff you need is the RangeLow method of the textbox

Just enter RETURN 0 in it - and any value lower 0 will stop the user from leaving the textbox. You can add up a messageboy infront of the return to put a message about the problem.

HTH
Lutz
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform