Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing unprintable characters in character and memo f
Message
 
À
06/12/2004 12:08:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00967248
Message ID:
00967264
Vues:
17
How about using a couple of passes through BETWEEN() ?
off the top of my head,
i=1
nLen = len(cString)+1
cBadChars = ""
do while i < nLen
cChar = substr(cString,i,1)
nAsc = asc( cChar )
if !(between(nAsc,65,90)
cBadChars = cBadChars+cChar
else
if !(between(nAsc,97,122)
cBadChars = cBadChars+cChar
endif
endif
i = i+1
enddo
if !empty(cBadChars)
cNewString=strtran(cBadChars,cString,"")
endif
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform