|
|
|
|
<Tab>.Status (Function) In french: <Onglet>.Etat Returns the status of a dynamic tab pane (identified by its alias). // 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: | | 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|