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 = TableSelect(TABLE_Customer)
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
gaaTab is associative array of strings
sAlias is string = gaaTab[nCustomerNum]
 
// Checks whether the customer form is not already opened
IF sAlias = "" _OR_ TabStatus(TAB_MyTab, sAlias) = paneNotFound THEN
// Opens the window in modification
gaaTab[nCustomerNum] = ...
TabOpen(TAB_MyTab, 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> = TabStatus(<Tab control> , <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 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/10/2023

Send a report | Local help