Syntax 2: For OLEStorage objects – PB Docs 2017

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

Argument

Description

olestorage

The OLEStorage object variable that you want to
save and close

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:

See also

Open

Save

SaveAs


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x