OLEStream object
The OLEStream object acts as a proxy for an OLE stream.
You can customize your own version of the OLEStream object
by defining a class user object inherited from the built-in OLEStream
object.
For more information about creating a custom OLEStream object,
see the chapter on user objects in the PowerBuilder Users
Guide.
For more information about using the OLEStream
object in an application, see Application Techniques.
Properties
OLEStream property |
Datatype |
Description |
---|---|---|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
Name |
String |
Specifies the member name of the stream |
Storage |
OMStorage |
(Read-only) Specifies the storage containing |
Events
OLEStream event |
Occurs |
---|---|
When the user object is created. |
|
When the user object is destroyed. |
Functions
OLEStream function |
Datatype returned |
Description |
---|---|---|
String |
Returns the name assigned to the user |
|
Integer |
Releases any stream previously opened. |
|
Integer |
Creates a reference to a context-specific |
|
PowerObject |
Returns a reference to the name of the |
|
Integer |
Obtains the length of the open stream. |
|
Integer |
Opens the specified stream from the storage. |
|
Boolean |
Adds an event to the end of the message |
|
Integer |
Reads from the stream. |
|
Integer |
Moves within the stream. |
|
Integer |
Sends an event to the user object and |
|
Object |
Returns the type of the user object. |
|
Long |
Writes to the stream. |