PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Use conditions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 the PHP sites.
New in version 15
PHP This function is now available for the PHP sites.
PHP This function is now available for the PHP sites.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 18 and later
WEBDEV - Server codePHP This function can now be used to handle the treeview tables in the WEBDEV and PHP sites.
New in version 18
WEBDEV - Server codePHP This function can now be used to handle the treeview tables in the WEBDEV and PHP sites.
WEBDEV - Server codePHP This function can now be used to handle the treeview tables in the WEBDEV and PHP sites.
Versions 19 and later
WEBDEV - Browser code This function is now available in Browser code for the Browser Table controls.
New in version 19
WEBDEV - Browser code This function is now available in Browser code for the Browser Table controls.
WEBDEV - Browser code This function is now available in Browser code for the Browser Table controls.
Versions 20 and later
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 20
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Example
WINDEVReports and QueriesWindows MobileJavaUser code (UMC)
// Subscript of "Ref" column found in "TABLE_Product"
// The display order is taken into account
ResColumnSubscript = TableColumnSubscript(TABLE_Product, "Ref", tcpDisplay)
WEBDEV - Server codeWEBDEV - Browser codeAjax
// Subscript of "Ref" column found in "TABLE_Product"
// The display order is taken into account
ResColumnSubscript = TableColumnSubscript(TABLE_Product, "Ref")
Syntax
<Result> = TableColumnSubscript(<Table Control> , <Column Name> , <Order>)
<Result>: Integer
Subscript of column:
  • The subscript of first column is set to 1.
  • The invisible columns are also listed. If the column is invisible and if the tcpDisplay constant is used, the column subscript is set to 0.
<Table Control>: Control name
Name of Table or TreeView Table control to use.
If this parameter corresponds to an empty string (""), TableColumnSubscript handles the control to which the current process belongs.
<Column Name>: Character string (with quotes)
Name of column to use.
<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 codePHP This parameter is not available. The display order of columns in edit is taken into account.
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: The multi-selection controls are available in Ajax only. WEBDEV - Server codePHP Reminder: The multi-selection is not available for the Classic Table controls.
WEBDEV - Server codePHP This function is available for the Ajax Table controls, the Classic Table controls and the TreeView Table controls.
WEBDEV - Browser code This function is available for the browser Table controls only.
WEBDEV - Browser codeAndroidiPhone/iPad The TreeView Table control is not available.
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
WEBDEV - Browser code WDJS.DLL
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment