Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting trailing spaces in textbox control
Message
From
29/03/2001 03:55:11
Jill Derickson
Software Specialties
Saipan, CNMI
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Detecting trailing spaces in textbox control
Miscellaneous
Thread ID:
00489758
Message ID:
00489758
Views:
54
Hello,

I want the user to enter some text that I will use to LOCATE in a field of a view. I want them to be able to enter any number of leading and trailing spaces; I'm having trouble detecting exactly what the user enters. Since I'm having trouble with this, I've set up a test w/the baseTextbox as the control txtLocate.

The init method of txtLocate is:
This.Value = ""

There is no controlSource.

In the valid method, the txtLocate.Value seems to be always padded on the right with trailing spaces, so that LEN( txtLocate.Value ) is 17. Anyone know why this is 17? why it's padded?

What would be the best way to detect what the user entered, including trailing spaces?

TIA, J
Next
Reply
Map
View

Click here to load this message in the networking platform