General information
Category:
Forms & Form designer
Title:
Detecting trailing spaces in textbox control
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only