Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting trailing spaces in textbox control
Message
From
02/04/2001 17:12:54
 
 
To
02/04/2001 15:52:17
Jill Derickson
Software Specialties
Saipan, CNMI
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00489758
Message ID:
00491105
Views:
10
Did you test after the user exited the field? As I mentioned, upon exit, the value is changed.

Here's a thought to trap the actual value prior leaving the field, but making it available after exit. I haven't tried it, but I'd be interested if you do.

In the KEYPRESS, just assign the .TEXT value to a property you've created for that textbox. You'll also want to do a DODEFAULT() so that the event processes values you've passed. Something like this:

cText -- user defined property for textbox, assigned an initial value of "".

.KEYPRESS()
LPARAMETERS nKeyCode, nShiftAltCtrl

THIS.cText = THIS.TEXT
DODEFAULT (nKeyCode, nShiftAltCtrl)



Jay
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform