Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting trailing spaces in textbox control
Message
 
À
29/03/2001 03:55:11
Jill Derickson
Software Specialties
Saipan, CNMI
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00489758
Message ID:
00490458
Vues:
21
This message has been marked as the solution to the initial question of the thread.
Would it be acceptable to convert the spaces, as they are entered, to another character, and then process the textbox value on valid or lost focus?

Let's say you convert spaces to underscores, then in KeyPress:
if nKeyCode=32
	dodefault(95, nShiftAltCtrl)
	nodefault
endif
and in LostFocus:
thisform.locteValue = strtran(alltrim(textBox.value),chr(95),' ')
Doru
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform