>>However I never found VFP's string handling fast. It uses things like
>>handles to memory locations. If you do like in your code :
>
lcXML = lcXML + someaddition
>>Adding over and over to same variable is not optimized at all. However
>>that code might be optimized in different ways (in VFP there are at least
>>3 ways:).
>
>Actually, there is some optimization going on in that case. Unfortunately, it can cause the code to break in recursive cases. To avoid the optimization _IF_ you are hitting this problem, change it to read:
>
>
lcXML = "" + lcXML + someaddition
Hi Garret,
OK making it to work slower I accept it's somewhat optimized :) What I meant was it's not optimized well enough to work with large strings and continously adding to an initial string. Within the VFP's aspect it's quite reasonable. I always wished if there were a way to thread a string like a char* in C (actually it might be with use of some sys() functions which I couldn't yet try to find out how they work).
Cetin