Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GO to a negative recno in a optimistic table buffered cu
Message
From
12/07/2005 19:03:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01031593
Message ID:
01031974
Views:
12
>Hi Hilmar,
>
>>Are you using the LOCATE command? Perhaps you should use the GOTO command;
>
>I prefer the LOCATE RECORD command, since it is as fast as the GOTO command. Additionally, it accepts the record number of the phantom record at EOF(), whereas GOTO raises an error in this case:
>
>Create Cursor curTest (nField I)
>Goto 1
>Locate RECORD 1
>
Quite interesting. That could save several lines of conditional code. Vielen Dank.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform