ContainerReleaseType, ContainerRelease
This property and event let you indicate what to do when the user of an ActiveDoc application navigates away from it.
Usage |
acdActiveDoc.ContainerReleaseType = nLiveOrDie nLiveOrDie = acdActiveDoc.ContainerReleaseType PROCEDURE acdActiveDoc.ContainerRelease |
Parameter |
Value |
Meaning |
nLiveOrDie |
0 |
When the host releases the application, open an instance of the VFP runtime and continue running there. |
1 |
When the host releases the application, shut it down. |
Example |
PROCEDURE ContainerRelease * Clean up if the app is shutting down IF This.ContainerReleaseType = 1 This.CleanUp() && a custom method ENDIF RETURN |
See Also |