General information
Category:
Coding, syntax & commands
I want to clarify a little bit my previous message: whenever possible, try to use the same strings of the same length for CHRTRAN() and STRTRAN(). It's much faster because, internally, VFP doesn't have to copy any strings. It only replaces chars in existing strings. Whenever a char must be removed or added, VFP has to copy the string, so, memory allocations/deallocations, etc, etc.
Vlad
>You're right. What I don't understand is the "I don't know for sure"... because I'm sure you've tested it! :))
>
>Here's an alternative solution (if it is acceptable):
>
>REPLACE Table1.Memo WITH CHRTRAN(table1.memo,CHR(13)+CHR(10),' ')
>
>The trick is to replace (not remove) the chr(13) and chr(10) with spaces. This is MUUUUUUCH faster. Sometimes it makes THE difference.
>
>Vlad
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only