|
|
|
|
|
- Use conditions
- The different types of column indices
TableEnumColumn (Function) In french: TableEnumèreColonne Returns the name of a column found in a Table or Treeview Table control.
// Name of third column found in the "TABLE_ProductTable" control ResColumnName = TableEnumColumn(TABLE_ProductTable, 3)
Syntax
<Result> = TableEnumColumn(<Table control> , <Column index>)
<Result>: Character string - Column name.
This result can be assigned to a Control variable. - Empty string ("") if <Column index> is equal to the number of columns in the Table control + 1.
<Table control>: Control name Name of the Table control to be used.
If this parameter corresponds to an empty string (""), the Table control to which the current process belongs will be used. <Column index>: Integer Index of the column, between 1 and the number of columns in the Table control + 1. A WLanguage error occurs if this parameter is greater than the number of columns found in the Table control + 1.To find out the number of columns in a Table control, use TableCount. Remarks Use conditions TableEnumColumn can be used on: - a Table control based on a data file or populated programmatically.
- a TreeView Table control based on a data file or populated programmatically.
- a single-selection or multiselection control,
The different types of column indices There are 2 types of indices for columns: - Index of the visible position: index of the column when the window is executed.
- Creation index: index of the column when the control is created in the window editor.
These indices change if the user moves the columns. TableEnumColumn uses the column creation index.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|