General information
Category:
Forms & Form designer
Title:
Prevent APPEND BLANK Error on Exit
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
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