Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do Not allow minus numbers to be entered
Message
From
13/10/2014 04:53:03
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:
01609222
Views:
62
>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

if it neeed to be a textbox:

The one is
to prevent - via Keypress event (test for the char and NODEFAULT)

the other
use the valid event, test on negatives, put a messagbox and return .f.

spinner: allows min and max values
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
Next
Reply
Map
View

Click here to load this message in the networking platform