Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eliminate the additional 0 in numeric field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00397904
Message ID:
00397931
Vues:
11
Ok ! Then try this :


*/KeyPress Method of TextBox control
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 9 .OR. nKeyCode=13 .AND. AT(" ",This.Text)#0
lcVal = CHRTRAN(This.Text,",.", "")
This.Value = VAL( LEFT(lcVal, AT(" ",lcVal) ))
ENDIF

Zero or some other number still shows, but value on exit should be ok !
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform