ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
  • Use conditions
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
Warning
From version 28 (75), TableColumnSubscript is kept for backward compatibility. This function is replaced by TableColumnIndex.
Returns the index of a column in a Table or Treeview Table control.
Example
Reports and Queries
// Index of "Ref" column in the "TABLE_Product" control
// The display order is taken into account
ResColumnIndex = TableColumnIndex(TABLE_Product, "Ref", tcpDisplay)
Syntax
<Result> = TableColumnIndex(<Table control> , <Column> , <Order>)
<Result>: Integer
Column index:
  • The index of the first column is set to 1.
  • The invisible columns are also listed.
<Table control>: Control name
Name of the Table or TreeView Table control to be used.
If this parameter corresponds to an empty string (""), TableColumnIndex will handle the control to which the current event belongs.
<Column>: Character string
Name of the column to be used.
<Order>: Integer constant
Specifies the order of relevant columns:
tcpCreationOrder in which the columns have been created when describing the Table control.
tcpDisplayOrder in which the columns are displayed at run time.

Remarks

Use conditions

TableColumnIndex can be used on:
  • Table or TreeView Table controls based on a data file.
  • Table or TreeView Table controls populated programmatically.
  • single-selection or multi-selection controls.

Business / UI classification: UI Code
Component: wd290obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/20/2023

Send a report | Local help