Navigation: Ultimate Suite for PowerBuilder Help > Single Page Application Windows > Tabbed Caption > Functions >

of_closetab

Send comments on this topic.

 

Description:

Closes a specific tab based on an index or object reference.

Syntax:

of_closetab (long al_index)
of_closetab (window aw_object)
of_closetab (userobject auo_object)

Argument

Description

al_index

The index of the tab you want to close.

aw_object

A reference to the window control that you want to close.

auo_object

A reference to the userobject that you want to close.

Return Value:

Returns 1 if successful or a 0 if the method was unable to close the tab. If code in a windows closequery event prevents the window from closing, this method will return a 0.

Usage:


Copyright © 2021 Werysoft Inc.