Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimize Program
Message
 
 
To
17/05/2002 10:17:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00657743
Message ID:
00658230
Views:
19
>>>>
>>>>It should work as-is, but here are a couple notes...
>>>>You don't need reccount() - if it does not have any records, it won't have anything to scan.
>>>>Don't assign the value to a variable.
>>>>Put the code in your scan instead of calling an external routine.
>>>>REPLACE STREETNAME with SUBSTR(ADDRESS,x,x)
>>>>REPLACE STREETNO with SUBSTR(ADDRESS,x,x)
>>>>...
>>>
>>>Multiple REPLACEs will be much slower than a single REPLACE.
>>
>>The idea was to move it out of the function...
>
>In any case, with the cacheing done by VFP nowadays any difference between single/multiple REPLCEs is like there but negligible.

It's not on 1MM records. If you have record validation it would be even more noticable.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform