ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Tab functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the status of a dynamic tab pane (identified by its alias).
Example
// Retrieves the selected row from a Table control
nIndex is int = TABLE_Customer.Select()
IF nIndex = -1 THEN
ToastDisplay("Select a customer in the Table control")
RETURN
END
 
// Gets the customer identifier
nCustomerNum is int = TABLE_Customer.CUSTOMERID
 
// Defines the tab alias
sAlias is string = gaaTab[nCustomerNum]
gaaTab is associative array of strings
 
// Checks whether the customer form is not already opened
IF sAlias = "" _OR_ TAB_MyTab.Status(sAlias) = paneNotFound THEN
// Opens the window in modification
gaaTab[nCustomerNum] = ...
TAB_MyTab.Open(StringBuild("Customer form of: %1", ...
TABLE_Customer.Name[nIndex]), IW_Form, nCustomerNum)
ELSE
ToastDisplay("Form already opened")
// Activates the tab
TAB_MyTab = sAlias
END
Syntax
<Result> = <Tab control>.Status(<Alias>)
<Result>: Integer constant
Status of the dynamic tab pane:
paneActiveThe tab pane exists and is attached to its tab.
paneFloatingThe tab pane exists and is detached.
paneNotFoundThe tab pane does not exist or has been closed.
<Tab control>: Control name
Name of the Tab control to be used.
<Alias>: Character string
Alias of the dynamic tab pane to use. This alias can be retrieved by: If this parameter does not correspond to any dynamic tab, the function has not action and a non-fatal error occurs.
Component: wd290obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/19/2023

Send a report | Local help