Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code...
Message
 
To
08/03/2000 18:09:32
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00343487
Message ID:
00343526
Views:
23
>Can anyone tell of an easier (faster) way to perform the following code?:
>
>SELECT TEMPALIAS
> SCAN
> SCATTER FIELD UNIQKEYSAS MEMVAR
> SELECT MF_158
&& I assume the order has already been set.
If seek(M.uniqkeysas)
> * SEEK M.uniqkeysas && not needed
> * IF FOUND() && not needed
> SELECT Prob_158
> * SEEK M.uniqkeysas && not needed
> * IF FOUND() && not needed

If seek(M.uniqkeysas)
scan while Uniqkeysas = m.uniqkeysas
REPLACE DEL_DTime WITH MF_158.DATE_IN
&& replace all goes through the entire table. The scan will
&& only go through matching records.
endscan
*REPLACE ALL DEL_DTime WITH MF_158.DATE_IN FOR Uniqkeysas = m.uniqkeysas
> ENDIF
> SELECT TEMPALIAS
> DELETE
> ENDIF
> SELE TEMPALIAS
> ENDSCAN
>
>RELEASE M.UNIQKEYSAS
>
>SELECT MF_158
>SET ORDER TO cdc_id
>
>SELECT TEMPALIAS
>PACK
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Previous
Reply
Map
View

Click here to load this message in the networking platform