Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reset fields when Cancel form a, return to form b
Message
From
11/04/2005 12:51:30
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01002351
Message ID:
01003421
Views:
18
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform