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.
Versions 18 and later
WEBDEV - Server codePHP This function can now be used to handle TreeView Table controls in WEBDEV and PHP sites.
New in version 18
WEBDEV - Server codePHP This function can now be used to handle TreeView Table controls in WEBDEV and PHP sites.
WEBDEV - Server codePHP This function can now be used to handle TreeView Table controls in WEBDEV and PHP sites.
Versions 20 and later
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 20
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Example
// Name of third column found in the "TABLE_ProductTable" control
ResColumnName = TABLE_ProductTable.EnumColumn(3)
Versions 21 and later
WINDEViPhone/iPadMac Catalyst
// Handle the column via a Control variable
pCol is Control
pCol <- TABLE_ProductTable.EnumColumn(3)
New in version 21
WINDEViPhone/iPadMac Catalyst
// Handle the column via a Control variable
pCol is Control
pCol <- TABLE_ProductTable.EnumColumn(3)
WINDEViPhone/iPadMac Catalyst
// Handle the column via a Control variable
pCol is Control
pCol <- TABLE_ProductTable.EnumColumn(3)
Versions 21 and later
WINDEViPhone/iPadMac Catalyst
// Enumerate all columns found in the Table control "TABLE_ProductTable"
AColumn is Control
FOR nColumn = 1 _TO_ TABLE_ProductTable.Count(toColumn)
AColumnn <- TABLE_ProductTable.EnumColumn(nColumn)
Trace(AColumn.FullName + "//" + AColumn.Title)
END
New in version 21
WINDEViPhone/iPadMac Catalyst
// Enumerate all columns found in the Table control "TABLE_ProductTable"
AColumn is Control
FOR nColumn = 1 _TO_ TABLE_ProductTable.Count(toColumn)
AColumnn <- TABLE_ProductTable.EnumColumn(nColumn)
Trace(AColumn.FullName + "//" + AColumn.Title)
END
WINDEViPhone/iPadMac Catalyst
// Enumerate all columns found in the Table control "TABLE_ProductTable"
AColumn is Control
FOR nColumn = 1 _TO_ TABLE_ProductTable.Count(toColumn)
AColumnn <- TABLE_ProductTable.EnumColumn(nColumn)
Trace(AColumn.FullName + "//" + AColumn.Title)
END
Syntax
<Result> = <Table control>.EnumColumn(<Column index>)
<Result>: Character string
  • Column name.
    Versions 21 and later
    WINDEViPhone/iPadMac Catalyst This result can be assigned to a Control variable.
    New in version 21
    WINDEViPhone/iPadMac Catalyst This result can be assigned to a Control variable.
    WINDEViPhone/iPadMac Catalyst 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.
<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 <Table>.Count.
Remarks

Use conditions

<Table>.EnumColumn 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,
WEBDEV - Server codePHP Reminder: Multi-selection is not available for "classic" Table controls.

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 two types of indices are returned by <Table>.ColumnSubscript.
These indices change if the user moves the columns.
<Table>.EnumColumn uses the column creation index.
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment