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

InsertFile – PB Docs 126 – PowerBuilder Library

InsertFile – PB Docs 126

InsertFile PowerScript function

Description

Inserts an object into an OLE control. A copy of the specified
file is embedded in the OLE object.

Syntax

Argument

Description

olecontrol

The name of the OLE control.

filename

A string whose value is the name of the
file whose contents you want to be the data in the embedded OLE
object. Filename should include the file’s
path.

Return Values

Integer. Returns 0 if it succeeds and one of the following
negative values if an error occurs:

  • -1 File not
    found

  • -9 Other error

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

Usage

The contents of the specified file is embedded in the OLE
object. There is no further link between the object in PowerBuilder
and the file.

Examples

This example creates a new OLE object in the control ole_1.
It is an Excel object and contains data from the spreadsheet EXPENSE.XLS:

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