SelectObject
PowerScript function
Description
Selects or clears the object in an OLE control but does not activate
the server application. The server’s menus are added to the PowerBuilder
application’s menus.
Applies to
OLE controls
Syntax
1 |
olecontrol.SelectObject ( selectstate ) |
Argument |
Description |
---|---|
olecontrol |
The name of the OLE control containing the object you want |
selectstate |
A boolean value indicating whether you want to select or |
Return value
Integer.
Returns 0 if it succeeds and one of the following negative values if
an error occurs:
-1 — Control is empty
-9 — Other error
If any argument’s value is null, SelectObject returns null.
Examples
This example selects the object in the OLE control ole_1:
1 2 |
integer result result = ole_1.SelectObject(TRUE) |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest