InsertClass PowerScript function
Description
Inserts a new object of the specified OLE class in an OLE
control.
Syntax
|
1 |
<span>ole2control</span>.<span>InsertClass</span> ( <span>classname</span> <span></span>) |
|
Argument |
Description |
|---|---|
|
ole2control |
The name of the OLE control in which |
|
classname |
A string whose value is the name of the |
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:
|
1 |
integer result |
|
1 |
result = ole_1.<span>InsertClass</span>("excel.sheet") |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest