PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Use conditions
  • The different types of column subscripts
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the name of a column found in a Table or Treeview Table control.
Versions 18 and later
PHP This function can now be used to handle TreeView Table controls in WEBDEV and PHP sites.
New in version 18
PHP This function can now be used to handle TreeView Table controls in WEBDEV and PHP sites.
PHP This function can now be used to handle TreeView Table controls in WEBDEV and PHP sites.
Example
// Name of third column found in the "TABLE_ProductTable" control
ResColumnName = TableEnumColumn(TABLE_ProductTable, 3)
Syntax
<Result> = TableEnumColumn(<Table control> , <Subscript of the column>)
<Result>: Character string
  • Column name.
  • Empty string ("") if <Column subscript> is equal to the number of columns in the Table control + 1.
<Table control>: Control name
Name of Table control to use.
If this parameter corresponds to an empty string (""), the Table control to which the current process belongs will be used.
<Subscript of the column>: entier
Subscript of the column, included between 1 and the number of columns found 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 browsing or memory control,
  • a single-selection or multiselection control,
PHP Reminder: Multiselection is not available for "classic" Table controls.

The different types of column subscripts

Two types of subscripts are available for the columns:
  • Subscript of the visible position: subscript of the column when running the window.
  • Creation subscript: subscript of the column when creating the control in the window editor.
These two types of subscripts are returned by TableColumnSubscript.
These subscripts are different if the columns have been moved by the user.
TableEnumColumn is using the creation subscript of the column.
Component: wd260obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment