Getting information about storage members – PB Docs 125

Getting information about storage members

When a storage is open, you can use one of the Member functions
to get information about the substorages and streams in that storage
and change them.

Table 19-10: OLE storage Member functions

Function

Result

MemberExists

Checks to see if the specified member
exists in a storage.

Members can be either storages or streams. Names of members
must be unique—you cannot have a storage and a stream with
the same name. A member can exist but be empty.

MemberDelete

Deletes a member from a storage.

MemberRename

Renames a member in a storage.

This code checks whether the storage subdata exists in stg_data before
it opens it. (The code assumes that stg_data and stg_subdata have
been declared and instantiated.)

To use MemberExists with the storage member
IOle10Native, use the following construction:

The char(1) is required
because the “I” in IOle10Native is not an I, as
you see if you look at the storage with a utility such as Microsoft’s
DocFile Viewer.

You need to use a similar construction to open the stream.
For example:


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