Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help on FileToStr() and ChrTran() functions
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00505649
Message ID:
00505875
Views:
22
>>Irene,
>>
>>If you use chrtran() to remove characters you can see that the code is running O(n2) which is unsatisfactory for large values of n. strtran() does not suffer from the same flaw:
>>
>>StrToFile(strtran(FileToStr('c:\tmp\wtbsold.txt'),'"',''),'c:\tmp\wtbsold.txt')
>>
>>There is a DeQuote() function over on my website that performs even faster that strtran. It's under Samples.
>>
>>
>Nice site, David. I'll place a reference to it in the FAQ here in UT.
>I probably have to run some tests comparing your utility with the utility I currently use (thanks to Cetin), when I have time.
>
>The only problem with your site, that it opens in the same IE instance, e.g. I then have to hit Back on my browser to return back to UT. Could you make it open in the new IE instance, please.
>

You could always Shift-Click. That will open a new IE. That's what I always do because you can't tell from a link what it will do.
HTH,
Bill Armbrecht
VFP MCP
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform