General information
Title:
=TableRevert() causes crash
I have a button bar at the bottom of a form with these buttons:
First,Prior,Next,Last ... Add,Edit,Delete ... Save,Undo ... Close
I'm getting an "illegal operation" error that shuts down VFP when I click the Edit button, then click the Undo button. I've commented out all of the actions performed by each button so that all the edit button
does in enable the Undo button, nothing more.
This leads me to believe that the problem lies in the TableRevert() function.
How can I debug the TableRevert() function? Or am I looking in the wrong place?
Any help is appreciated
Larry Moody (see code below)
*************************************
this is the code in the "Edit" button
-------------------------------------
IF EOF()
=MESSAGEBOX("No record available",0,"Error")
ELSE
* button bar settings
THISFORM.cmdGroup.cmdUndo.ENABLED = .T.
ENDIF
*************************************
this is the code in the "Undo" button
-------------------------------------
=TABLEREVERT(.T.)
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only