Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancel edits
Message
From
25/04/2000 15:35:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Cancel edits
Miscellaneous
Thread ID:
00363305
Message ID:
00363305
Views:
48
I have a form that allows editing of records. I want to be able to cancel the edits or save them. My cancel isn't working properly. I click on my edit button and it allows the user to edit the record. The user can then hit the save or cancel buttons. If the user hits cancel I want all the changes made not to show up but they do. How can I fix this? Here is my code for the edit, and cancel buttons.

When user clicks on edit.

m.isediting2 = .T.
*return to the record when cancelling
prevrec = recno()


When user hits cancel

*go back to the record before edits were made
go prevrec
thisformset.refresh

This isn't working and the edits are being stored in the table temporarily. The edits aren't saved but they stay in the table till I exit the application and run it again. What can I do to cancel the edits?

Thanks,
Tyler
Next
Reply
Map
View

Click here to load this message in the networking platform