Description:
Opens a window or userobject in a new tab.
Syntax:
of_opentab (ref userobject a_object, string as_text, string as_image)
of_opentab (ref userobject a_object, string as_type, string as_text, string as_image)
of_opentab (ref userobject a_object, powerobject apo_parm, string as_text, string as_image)
of_opentab (ref userobject a_object, string as_type, powerobject apo_parm, string as_text, string as_image)
of_opentab (ref userobject a_object, string as_type, string apo_parm, string as_text, string as_image)
of_opentab (ref userobject a_object, string as_type, long apo_parm, string as_text, string as_image)
of_opentab (ref window a_object, string as_text, string as_image)
of_opentab (ref window a_object, string as_type, string as_text, string as_image)
of_opentab (ref window a_object, string as_type, powerobject apo_parm, string as_text, string as_image)
of_opentab (ref window a_object, string as_type, string apo_parm, string as_text, string as_image)
of_opentab (ref window a_object, string as_type, long apo_parm, string as_text, string as_image)
Argument |
Description |
a_object |
The object that will be opened in the new tab. This can be a window or userobject. |
as_text |
The text that will display in the tab. |
as_image |
The file name of the image used in the item. You can use a PowerBuilder image (e.g. "sql!"). This value can be blank if no image will be displayed. |
as_type (optional) |
A string containing the classname of the object being opened. |
apo_parm (optional) |
A PowerObject, String, or Long instance that will be passed to the opening object as a parameter. |
Return Value:
Returns a numeric value containing the index of the newly opened tab.
Usage:
Copyright © 2021 Werysoft Inc.