|
|
|
|
|
TabStatus (Function) In french: OngletEtat Returns the status of a dynamic tab pane (identified by its alias).
nIndice is int = TableSelect(TABLE_Client)
IF nIndice = -1 THEN
ToastDisplay("Vous devez sélectionner un client dans le champ Table")
RETURN
END
nNumClient is int = TABLE_Client.IDCLIENT
gtaOnglet is associative array of strings
sAlias is string = gtaOnglet[nNumClient]
IF sAlias = "" _OR_ TabStatus(ONG_MonOnglet, sAlias) = paneNotFound THEN
gtaOnglet[nNumClient] = ...
TabOpen(ONG_MonOnglet, StringBuild("Fiche client de: %1", ...
TABLE_Client.Nom[nIndice]), FI_Fiche, nNumClient)
ELSE
ToastDisplay("Fiche déjà ouverte")
ONG_MonOnglet = sAlias
END
Syntax
<Result> = TabStatus(<Tab control> , <Alias>)
<Result>: Integer constant Status of dynamic tab pane: | | paneActive | The tab pane exists and is attached to its tab. | paneFloating | The tab pane exists and is detached. | paneNotFound | The 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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|