Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect only row change in grid.
Message
From
10/07/2000 13:36:24
 
 
To
10/07/2000 11:52:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00389383
Message ID:
00390366
Views:
23
>>>You have to be careful using recno because new records in a buffere table may have the same value... don't you have a unique id in the cursor or table being displayed?
>>>
>>
>>New records in a buffered table will not have the same value for their record number. They will have a negative record number until they are committed and then they will have a "real" positive record number.
>
>Sorry, Fred I wasn't being clear enough... I was trying to stress that Recno is not a reliable identifier... If you have a buffered table... your recno may return -1 for a new record. Once those records have have been committed a new record could be added which will could also return -1, or you will have problems determining movement in the grid... I would really avoid the use of recno for this scenario... wouldn't you?

Certainly. But that depends on how long your use of the record number is for. As a long time indicator (something stored), it's pretty useless, especially in a buffered environment. But it can have use while you're manipulating things. It would need to be reset anytime a buffered record was commited, as it's record number would now be different. Again, short term, OK, long term, no-way!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform