Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine Significant Trailing Spaces in controls
Message
 
 
À
02/08/2007 11:42:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01245320
Message ID:
01245515
Vues:
23
>The important thing is not the font, but what chr(176) shows, namely a greyish background. So if you wantt to start with an empty string, let the empty string not be empty, but a sring of only chr(176)s, like repl(chr(176),20). When the user has finished typing in, you end up with a string which contain the entered text, the entered spaces and a lot of chr(176)s. So it is very simple to get EXACTLY what the customers have entered, namely chrtran(txtInput.value,chr(176),'').
>
>I have used this technique many times, it's very elegant and easy to implement. However, in order to also let the user use backspace correctly, I start with a loooong string, like repl(chr(176),1000). Then the user must really struggle hard to fool your code.

Tore,

How do you handle END key?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform