containerrelease 事件

应用于 请参阅

当一个 Active Document 被自己的宿主程序释放时发生。

语法

PROCEDURE Object.ContainerRelease

说明

当关闭容器,Active Document 从容器的缓冲中抛出,或者当从 Active Document 中漫游时,该 Active Document 可以被容器释放。例如,当您从一个 Active Document 中漫游时,Microsoft Internet Explorer 4.0 for Windows 会释放该 Active Document。在Microsoft Internet Explorer 3.0 for Windows 中,当一个 Active Document 从四页的缓冲中抛出时,会释放该 Active Document。

ContainerReleaseType 属性可以在此事件中设置,在该事件发生后 Visual FoxPro 检查此值以确定是否在 Visual FoxPro 运行时刻打开 Active Document。