Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine Significant Trailing Spaces in controls
Message
 
 
To
02/08/2007 11:42:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01245320
Message ID:
01245515
Views:
22
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform