Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
=TableRevert() causes crash
Message
From
01/12/1996 13:40:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
=TableRevert() causes crash
Miscellaneous
Thread ID:
00013886
Message ID:
00013886
Views:
82
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
Map
View

Click here to load this message in the networking platform