Syntax 3 For loading an OLE object from a file into a control
Description
Opens an OLE object in a file and loads it into an OLE control.
Controls
OLE controls
Syntax
|
1 |
<span>olecontrol</span>.<span>Open</span> ( <span>OLEsourcefile</span> ) |
|
Argument |
Description |
|---|---|
|
olecontrol |
The name of the OLE control into which |
|
OLEsourcefile |
A string specifying the name of an OLE |
Return Values
Integer. Returns 0 if it succeeds and
one of the following negative values if an error occurs:
-
-1 The file is not
found or its data has an invalid format -
-9 Other error
If any argument’s value is null, Open returns null.
Examples
This example opens the object in the file MYSTUFF.OLE and
loads it into in the control ole_1:
|
1 |
integer result |
|
1 |
result = ole_1.<span>Open</span>("c:ole2mystuff.ole") |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest