Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Write – PB Docs 125 – PowerBuilder Library

Write – PB Docs 125

Write PowerScript function

Description

Writes data to an opened OLE stream
object.

Controls

OLEStream objects

Syntax

Argument

Description

olestream

The name of an OLE stream variable that
has been opened

dataforstream

A string, blob, or character array whose
value you want to write to olestream

Return Values

Long. Returns the number of characters
or bytes written if it succeeds and one of the following negative
values if an error occurs:

  • -1 Stream is
    not open

  • -2 Read error

  • -9 Other error

If any argument’s value is null, Write returns null.

Examples

This example opens an OLE object in the file MYSTUFF.OLE and
assigns it to the OLEStorage object olest_stuff.
Then it opens the stream called info in olest_stuff and
assigns it to the stream object olestr_info.
It writes the contents of the blob variable lb_info to
the stream olestr_info. Finally, it
saves the storage olest_stuff:

See Also


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