Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recno() after Tablerevert() question
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Recno() after Tablerevert() question
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01448538
Message ID:
01448538
Views:
99
Hi,

I am trying to understand something about how VFP moves record pointer during update. I have tracked the following change but need to understand what happens:

1. The program adds a new record to a table (the table has 100 records). The new record gets RECNO() -1.
2. For whatever reason TABLEUPDATE() fails (e.g. duplicate key field)
3. After call to TABLEREVERT() the current record RECNO() is now 101. And it looks like the record is completely empty, that is as if the record pointer moved to a phantom record (next to EOF().

Is this how VFP works by design? Could someone explain this?

TIA>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform