Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting trailing spaces in textbox control
Message
De
31/03/2001 05:23:54
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:
00490560
Vues:
15
Doru,

YES, YES, YES! that works! so simple. thank you, thank you! I'll test a bit more, but it looks fine so far.

J

>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),' ')
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform