Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which Is Better???
Message
From
02/01/2001 12:28:21
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00458477
Message ID:
00458516
Views:
17
Hello, Kevin.

Besides Larry and Nadya considerations, notice that to be truly optimizable, an expression have to match an index expression. So, if you want VFP to really speed up the searches you mentioned, you have to have an index on "new_cpt".

>>>I am updating a series of PRG's to optimize them for speed and to get them ready to convert into classes.
>>>
>>>I am finding statement's like:
>>>
>>>   replace all cpt_code with h->new_cpt for;
>>>      h->new_cpt<>space(10).and..not.subs(h->new_cpt,1,1)$'QHZ'
>>>
>>>My updated version is:
>>>
>>>   REPLACE ALL Cpt_Code WITH Cdm.new_cpt;
>>>     FOR NOT EMPTY(Cdm.new_cpt) AND NOT LEFT(Cdm.new_cpt,1) $ "QHZ"
Previous
Reply
Map
View

Click here to load this message in the networking platform