Navigation: Ultimate Suite for PowerBuilder Help > PowerDock > Functions >

of_opendocument

Send comments on this topic.

 

Description:

Opens a window or userobject in a main document tab control.

Syntax:

of_opendocument (ref userobject uo_object, string as_text, string as_image)
of_opendocument (ref userobject uo_object, string as_type, string as_text, string as_image)
of_opendocument (ref userobject uo_object, powerobject apo_parm, string as_text, string as_image)
of_opendocument (ref userobject uo_object, string as_type, powerobject apo_parm, string as_text, string as_image)
of_opendocument (ref window uo_object, string as_text, string as_image)
of_opendocument (ref window uo_object, string as_type, string as_text, string as_image)
of_opendocument (ref window uo_object, powerobject apo_parm, string as_text, string as_image)
of_opendocument (ref window uo_object, string as_type, powerobject 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 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 document.

Usage:


Copyright © 2021 Werysoft Inc.