PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Use conditions
  • The different types of column indices
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the name of a column found in a Table or Treeview Table control.
Versions 16 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for WINDEV applications in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Example
// Name of third column found in the "TABLE_ProductTable" control
ResColumnName = TableEnumColumn(TABLE_ProductTable, 3)
Versions 21 and later
WINDEV
// Handle the column via a Control variable
pCol is Control
pCol <- TableEnumColumn(TABLE_ProductTable, 3)
New in version 21
WINDEV
// Handle the column via a Control variable
pCol is Control
pCol <- TableEnumColumn(TABLE_ProductTable, 3)
WINDEV
// Handle the column via a Control variable
pCol is Control
pCol <- TableEnumColumn(TABLE_ProductTable, 3)
Versions 21 and later
WINDEV
// Enumerate all columns found in the Table control "TABLE_ProductTable"
AColumn is Control
FOR nColumn = 1 _TO_ TableCount(TABLE_ProductTable, toColumn)
AColumn <- TableEnumColumn(TABLE_ProductTable, nColumn)
Trace(AColumn.FullName + "//" + AColumn.Title)
END
New in version 21
WINDEV
// Enumerate all columns found in the Table control "TABLE_ProductTable"
AColumn is Control
FOR nColumn = 1 _TO_ TableCount(TABLE_ProductTable, toColumn)
AColumn <- TableEnumColumn(TABLE_ProductTable, nColumn)
Trace(AColumn.FullName + "//" + AColumn.Title)
END
WINDEV
// Enumerate all columns found in the Table control "TABLE_ProductTable"
AColumn is Control
FOR nColumn = 1 _TO_ TableCount(TABLE_ProductTable, toColumn)
AColumn <- TableEnumColumn(TABLE_ProductTable, nColumn)
Trace(AColumn.FullName + "//" + AColumn.Title)
END
Syntax
<Result> = TableEnumColumn(<Table control> , <Column subscript>)
<Result>: Character string
  • Column name.
    Versions 21 and later
    WINDEV This result can be assigned to a Control variable.
    New in version 21
    WINDEV This result can be assigned to a Control variable.
    WINDEV This result can be assigned to a Control variable.
  • 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.
<Column subscript>: Integer
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,

The different types of column indices

There are 2 types of indices for columns:
  • Index of the visible position: subscript of the column when running the window.
  • Creation index: 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: wd270obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment