Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mulitple calls to seek, do I need them
Message
 
 
To
20/05/2003 16:40:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00790685
Message ID:
00790746
Views:
21
Yep. Since I have no idea what the error code was doing, I could not assume that error code was not moving the record pointer. If you consolidate the data checks and use a flag so NO other code is called before issung the REPLACE commands, then you can be assured the record pointers are not being moved.

>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
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform