Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C++ can speed up native VFP strings command ?
Message
From
21/11/2003 05:40:59
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00851950
Message ID:
00852242
Views:
9
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
Map
View

Click here to load this message in the networking platform