Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent APPEND BLANK Error on Exit
Message
From
27/05/2001 08:38:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Prevent APPEND BLANK Error on Exit
Miscellaneous
Thread ID:
00511886
Message ID:
00511886
Views:
40
If I APPEND BLANK into a View or some other action that requires a TableRevert() to back out and for some reason the form crashes an error occours that requires a TableRevert() to be able to close the session. Where and how is the best way to issue the TableRevert()?

Should I loop through the dataenvironment and test each view with GetFldState?

If so where is the best place to place the testing code?

I have also thought of adding two properties to my form .currentaction and .actiontables[]. When I issue a command that might need a tablerevert put the action like ADD or EDIT in .currentaction and put a list of tables/views in .actiontables[] then in the destroy of the form if thisform.currentaction contains ADD or EDIT loop through the .actiontables and to a TableRevert on each table/view... of course when the action is completed with a save or a revert I would have to clear the contents of .currentaction and .actiontables... but this requires more coding for each form...

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform