Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting trailing spaces in textbox control
Message
 
 
À
29/03/2001 03:55:11
Jill Derickson
Software Specialties
Saipan, CNMI
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00489758
Message ID:
00489897
Vues:
15
>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
Jill,

Try to experiment with changing the width of this textbox and MaxLen property. If none helps, you still have a workaround using a KeyPress method, but it would be akward... :(
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform