Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting trailing spaces in textbox control
Message
 
To
29/03/2001 03:55:11
Jill Derickson
Software Specialties
Saipan, CNMI
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00489758
Message ID:
00490458
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform