PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the status of a dynamic tab pane (identified by its alias).
Example
// Gets the selected row
nSubscript is int = TableSelect(TABLE_Customer)
IF nSubscript = -1 THEN
ToastDisplay("Select a customer in the table")
RETURN
END

// Gets the customer identifier
nCustomerNum is int = TABLE_Customer.CUSTOMERID

// Defines the pane alias
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[nSubscript]), IW_Form, nCustomerNum)
ELSE
ToastDisplay("Form already opened")
// Enables the pane
TAB_MyTab = sAlias
END
Syntax
<Result> = TabStatus(<Tab Control> , <Alias>)
<Result>: Integer constant
Status of dynamic tab pane:
paneActiveThe pane exists and it is attached to its tab.
paneFloatingThe pane exists and it is floating.
paneNotFoundThe pane does not exist or it was closed.
<Tab Control>: Control name
Name of Tab control to use.
<Alias>: Character string (with quotes)
Alias of the dynamic tab pane to use. This alias can be retrieved by: If this parameter does not correspond to any dynamic pane, the function has not action and a non-fatal error occurs.
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment