Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement