Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I can't remove a garbage from a file
Message
 
To
17/02/2005 18:24:08
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows '98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00988090
Message ID:
00988233
Views:
52
Byron, You can handle all unwanted chars but You must decide what chars You wanted in the file.
Something Like this (It is based on a previous thread here in UT but I am not a PUTM and can't do a search):
myFileAsString = FILETOSTR(".....")

myWANTEDChars  = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
myWANTEDChars  = myWANTEDChars + LOWER(myWANTEDChars) + "0123456789" +....&& etc.

notWantedChars = CHRTRAN(myFileAsString, myWANTEDChars,"")

finalFile = CHRTRAN(myFileAsString, notWantedChars, SPACE(1))

STRTOFILE(finalFile, ".....")
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform