ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Tab functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the status of a dynamic tab pane (identified by its alias).
Example
// Récupère la ligne sélectionnée dans un champ Table
nIndice is int = TableSelect(TABLE_Client)
IF nIndice = -1 THEN
	ToastDisplay("Vous devez sélectionner un client dans le champ Table")
	RETURN
END

// Récupère l'identifiant du client
nNumClient is int = TABLE_Client.IDCLIENT

// Définit l'alias du volet
gtaOnglet is associative array of strings
sAlias is string = gtaOnglet[nNumClient]

// Vérifie si la fiche client n'est pas déjà ouverte
IF sAlias = "" _OR_ TabStatus(ONG_MonOnglet, sAlias) = paneNotFound THEN
	// Ouvre la fenêtre en modification
	gtaOnglet[nNumClient] = ...
		TabOpen(ONG_MonOnglet, StringBuild("Fiche client de: %1", ...
			TABLE_Client.Nom[nIndice]), FI_Fiche, nNumClient)
ELSE
	ToastDisplay("Fiche déjà ouverte")
	// Active le volet
	ONG_MonOnglet = sAlias
END
Syntax
<Result> = TabStatus(<Tab control> , <Alias>)
<Result>: Integer constant
Status of 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: wd300obj.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help