Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to retain position
Message
From
14/03/2005 22:23:07
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00995759
Message ID:
00995803
Views:
16
Victor,

>The binding context will only save the record number and not a key. All depending on your situation you may want to use a primary key instead. I only suggested using the binding context because your psuedo code demo had Recno() which is the current record position on a cursor.

Hey, it wasn't MY psuedo code. :-) If the scenario was to reposition the pointer to the same record after some action AND it did not involve adding a record and saving it, then refreshing (or anything else which might affect the group of records positionally), then maybe a RECNO() approach would be sufficient. But in some cases it would be risky and would depend too much on an assumption that the .position/RECNO() IN THE DATASET/CURSOR would still point to the same record after adding and refreshing.

Anyway, thanks for the clarification of .position being a pointer and not a unique key.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Reply
Map
View

Click here to load this message in the networking platform