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

InsertClass – PB Docs 126 – PowerBuilder Library

InsertClass – PB Docs 126

InsertClass PowerScript function

Description

Inserts a new object of the specified OLE class in an OLE
control.

Syntax

Argument

Description

ole2control

The name of the OLE control in which
you want to create a new object

classname

A string whose value is the name of the
class of the object you want to create

Return Values

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

  • -1 Invalid class name

  • -9 Other error

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

Usage

Classnames are stored in the Registration database. Examples
of classnames include:

  • Excel.Sheet

  • Excel.Chart

  • Word.Document

Examples

This example inserts an empty Excel spreadsheet into
the OLE control, ole_1:

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