Syntax 2: For OLEStorage objects
Description
Closes an OLEStorage object, saving the object in the associated
storage file or object and clearing the connection between them.
Close also severs connections with any OLE controls that have opened the
object. Calling Close is the same as calling Save and then Clear.
Applies to
OLEStorage objects
Syntax
1 |
olestorage.Close ( ) |
Argument |
Description |
---|---|
olestorage |
The OLEStorage object variable that you want to |
Return value
Integer.
Returns 0 if it succeeds and one of the following negative values
if an error occurs:
-1 — The storage is not open
-9 — Other error
If olestorage is null, Close returns null.
Examples
This example saves and clears the object in the OLEStorage object
variable olest_stuff. It also leaves any OLE controls that have opened
the object in olest_stuff empty:
1 2 |
integer result result = olest_stuff.Close() |
See also