Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do Not allow minus numbers to be entered
Message
De
13/10/2014 04:53:03
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01609221
Message ID:
01609222
Vues:
61
>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]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform