Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove special characters from editbox text
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01301478
Message ID:
01301498
Views:
14
>My users often copy and past text from other applications into an editbox in my application that has special characters that show up as a graphic box character. Is there an easy way to test and replace with a space for characters that are outside the basic a-z, A-Z, punctuation, etc.?

Try
lcNormalChars = '1234567890ab....'
chrtran(lcText,ctrtran(lcText, lcNormalChars,""),"")
From the top of my head.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform