Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing unprintable characters in character and memo f
Message
 
To
06/12/2004 12:08:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00967248
Message ID:
00967264
Views:
9
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
Previous
Reply
Map
View

Click here to load this message in the networking platform