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
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 subscript of a column found in a Table or Treeview Table control.
Versions 15 and later
PHP This function is now available for PHP sites.
New in version 15
PHP This function is now available for PHP sites.
PHP This function is now available for PHP sites.
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 19 and later
WEBDEV - Browser code This function is now available in Browser code for Table controls in browser mode.
New in version 19
WEBDEV - Browser code This function is now available in Browser code for Table controls in browser mode.
WEBDEV - Browser code This function is now available in Browser code for Table controls in browser mode.
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
WINDEVReports and QueriesJavaUser code (UMC)
// Indice de la colonne "Réf" du champ Table "TABLE_Produit"
// L'ordre d'affichage est pris en compte
ResIndiceColonne = TableColumnSubscript(TABLE_Produit, "Réf", tcpDisplay)
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 = TableColumnSubscript(TABLE_Produit, "Réf")
Syntax
<Result> = TableColumnSubscript(<Table control> , <Column> , <Order>)
<Result>: Integer
Subscript of column:
  • The subscript of 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 is an empty string (""), the TableColumnSubscript function handles 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:
tcpDisplayOrder in which the columns are displayed at run time.
tcpCreationOrder in which the columns have been created when describing the Table control.

WEBDEV - Server codeWEBDEV - Browser codePHP This parameter is optional. The constant used by default is tcpCreation: the creation order of columns is taken into account.
Remarks

Use conditions

TableColumnSubscript can be used on:
  • a browsing or memory control,
  • a single-selection or multi-selection control.
    WEBDEV - Server codePHP Reminder: Multi-selection is not available for Classic Table controls.
WEBDEV - Server codePHP This function is available for Table controls in Ajax mode, Table controls in classic mode and TreeView Table controls.
WEBDEV - Browser code This function is available for Table controls in browser mode only.
WEBDEV - Browser codeAndroidiPhone/iPad The TreeView Table control is not available.
WEBDEV - Browser code The TreeView Table control is not available.
Component: wd270obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment