Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TABLEREVERT to where?
Message
From
04/06/2001 14:21:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
TABLEREVERT to where?
Miscellaneous
Thread ID:
00514734
Message ID:
00514734
Views:
45
I have a grid in a container populated by a local view. If the user adds a record with the Add button (APPEND BLANK, REPLACE...) all is fine. The user enters an amount, say 4000.

If the user clicks on the "Cancel" button I do a TABLEREVERT(.T.,lcTableName). All seems to be fine. The grid doesn't show any records.
OK so far. RECC()=0 RECN()=1

If the user now clicks on Add, the new record has the values of the original TABLEREVERTed record (4000) !
If I now bring up the Debugger, it shows RECC()=1 RECN()=-1.

If I now minimize the debugger the grid doesn't show any records and RECC()=1 RECN()=2 !

If the user clicks Add again and fills in a value, RECC()=2 RECN()=-2 ! With only 1 record showing!

What happens after TABLEVERERT(), where are the entered values stored ?
After the TABLEREVERT and APPEND BLANK what am I seeing?
Anyone have any ideas?
Next
Reply
Map
View

Click here to load this message in the networking platform