Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting trailing spaces in textbox control
Message
From
31/03/2001 05:23:54
Jill Derickson
Software Specialties
Saipan, CNMI
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00489758
Message ID:
00490560
Views:
14
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),' ')
Previous
Reply
Map
View

Click here to load this message in the networking platform