RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleContainer.Close Method

Deactivates the OLE object.

Pascal
procedure Close;
C++
__fastcall Close();

Call Close to deactivate the OLE object and terminate its server application, without removing it from the container. Any changes the user made to the OLE object are automatically saved. After calling Close, the container's State property is osLoaded.

Note: If Close is called when no OLE object is loaded, TOleContainer raises an exception.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!