Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to go to a new record?
Message
 
 
To
20/03/2011 22:01:50
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01504292
Message ID:
01504332
Views:
52
My data is using buffering #5 but for some reason when I was trying yesterday to go to -1 it didn't work. I must have not tested correctly. Even though I changed the strategy of this procedure, I will try again. Thank you.

>My data classes do that all the time. If you are getting -1 for record number then you are using buffering #5 and you should be able to goto -1. I just tried it here and it worked fine.
>
>>Hi,
>>
>>Say I add (in code) a new record to a cursor. VFP assigns recno -1 to this record. Then I move record pointer to another record (say, Go Top). And when I want the record pointer to be moved back on the newly added record, what is the reliable method to do so? I tried to go to -1 but it moves to record no 1 (not negative 1). The PK value is not yet assigned to this new record so I cannot use it. Any suggestions? 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
Previous
Reply
Map
View

Click here to load this message in the networking platform