Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement