ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
  • Use conditions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
From version 28 (75), .ColumnSubscript is kept for backward compatibility. This function has been replaced with <Table>.ColumnIndex.
Returns the index of a column in a Table or Treeview Table control.
Example
WEBDEV - Server codeWEBDEV - Browser codeAjax
// Indice de la colonne "Réf" du champ Table "TABLE_Produit"
// L'ordre d'affichage est pris en compte
ResIndiceColonne = TABLE_Produit.IndiceColonne("Réf")
Syntax
<Result> = <Table control>.ColumnIndex(<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.
<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 runtime.

WEBDEV - Server codeWEBDEV - Browser codePHP This parameter is optional. By default, the constant used is ticCreation: column creation order is taken into account.
Remarks

Use conditions

<Table>.ColumnIndex 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.
    WEBDEV - Server codePHP Reminder Multi-selection is not available for Table control fields in "Server" mode.
  • WEBDEV - Server codePHP a Table control in "Server" or "Server + AJAX" mode, or on a TreeView Table control.
  • WEBDEV - Browser code a Table control in "Browser" mode.
    WEBDEV - Browser code The TreeView Table control is not available.
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/18/2024

Send a report | Local help