Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mulitple calls to seek, do I need them
Message
From
20/05/2003 16:40:16
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00790685
Message ID:
00790739
Views:
25
That is what the code does. I was just wondering if second set of SEEKs were necessary. U think is was done to be sure record pointer was not moved.

>How many checks are you doing? Set a flag instead:
>llCommit = .t.
>llCommit = iif(seek(valuea,tablea,ordera), llCommit, .f.)
>llCommit = iif(seek(valueb,tableb,orderb), llCommit, .f.)
>llCommit = iif(seek(valueX,tableX,orderX), llCommit, .f.)
>if llCommit
>   * do replaces here
>else
>   * do error stuff here
>endif
>If that does not meet your needs, then more information is needed if you want to try to avoid issuing the SEEK() functions again.
>
>>Replace is not done earlier because this is a mult-user system and do not want to do updates and inserts until all data is checked.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform