Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent APPEND BLANK Error on Exit
Message
De
27/05/2001 08:38:45
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Prevent APPEND BLANK Error on Exit
Divers
Thread ID:
00511886
Message ID:
00511886
Vues:
41
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
Fil
Voir

Click here to load this message in the networking platform