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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement