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 / Table functions
  • Use conditions
  • The different types of column indexes
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the name of a column found in a Table or Treeview Table control.
Example
// Nom de la troisième colonne du champ Table "TABLE_TableProduit"
ResNomColonne = TableEnumColumn(TABLE_TableProduit, 3)
Syntax
<Result> = TableEnumColumn(<Table control> , <Column index>)
<Result>: Character string
  • Column name.
  • 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.
  • single-selection or multi-selection controls,

The different types of column indexes

There are 2 types of indexes for columns:
  • Visible position index: column index when the window is executed.
  • Creation index: column index when the field is created in the window editor.
These two types of indexes are returned by TableColumnIndex.
These indexes change if the user moves the columns.
TableEnumColumn uses the column creation index.
Component: wd300obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help