Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
In wish form method is the data environment closed ?
Message
From
22/06/2006 11:17:57
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01130824
Message ID:
01130835
Views:
16
>I have a form A.
>When the user clic a button, I want to close form A and open form B.
>But I want to make sure the data environment of form A is closed (and flushed) BEFORE opening form B,
>
>Where should I put this code ? After the thisform.release ? somewhere else ?
>
>Thks
>Eric

I had the situation where the data in FormB is dependent on FormB: FormB is a child of FormA, with respect to the tables involved; i.e., if a new parent record is not saved, then the user would get error messages (trigger failed) when trying to save the child record.

In this case, I simply try to make sure that the parent table is saved. While there are pending changes, the user is not allowed to open the child record.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform