Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove special characters from editbox text
Message
De
12/03/2008 15:25:36
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01301478
Message ID:
01301487
Vues:
13
x = "this*is1 a test"
y = ""
FOR i = 1 TO LEN(x)
	y = y + IIF( ISALPHA( SUBSTR(x, i, 1)), SUBSTR(x, i, 1), [ ])
endfor
>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.?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform