Hi David,
---------
Your two requests of the functions are not exactly equivalent.
occurs() must always scan the entire string to find and count the total number of occurances in the target string.
at(,,n) can stop its scan of the string as soon as it finds the Nth occurance.
----------
I known this, but if you put MAXOCCURRENCE on Nth occurance parameters,
AT() must always scan the entire string, except the right residual.
With AT(,,VFPSTRINGLENGHTLIMIT) the job of AT() is superior, because for every found occurrence must verify if it is that one tried.
------
If you are unhappy with the performance of any given Visual FoxPro string function, there are two articles on my website showing how you can call C++ code from Visual FoxPro. Both examples perform the task between 2 times as fast as Visual FoxPro and several orders of magnitude faster than Visual FoxPro.
------
Thanks David, I go to see immediately.
Fabio
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