Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reset fields when Cancel form a, return to form b
Message
De
11/04/2005 12:51:30
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01002351
Message ID:
01003421
Vues:
19
>I think I would go with implementing TABLEREVERT
>or you could go explicit with OLDVAL() directly.

This prompted my brain. I think the problem is the code for the "Cancel" button is
IF ToCancel()
	IF TXNLEVEL() <> 0
	   ROLLBACK
	   TABLEREVERT(.T., 'vorders')
	   TABLEREVERT(.T., 'vitems')
	ENDIF
	ThisForm.Release()
ENDIF
Uf I change it to
IF ToCancel()
	IF TXNLEVEL() <> 0
	    ROLLBACK
	ENDIF 
	TABLEREVERT(.T., 'vorders')
	TABLEREVERT(.T., 'vitems')
	ThisForm.Release()
ENDIF
It appears to work. Does this seen reasobable?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform