PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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 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 18 and later
PHP This function can now be used to handle TreeView Table controls in WEBDEV and PHP sites.
New in version 18
PHP This function can now be used to handle TreeView Table controls in WEBDEV and PHP sites.
PHP This function can now be used to handle TreeView Table controls in WEBDEV and PHP sites.
Example
Reports and QueriesJavaUser code (UMC)
// Subscript of "Ref" column in the "TABLE_Product" control
// The display order is taken into account
ResColumnSubscript = TABLE_Product.ColumnSubscript("Ref", tcpDisplay)
Ajax
// Subscript of "Ref" column in the "TABLE_Product" control
// The display order is taken into account
ResColumnSubscript = TABLE_Product.ColumnSubscript("Ref")
Syntax
<Result> = <Table control>.ColumnSubscript(<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 Table or TreeView Table control to use.
<Column>: 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.

PHP This parameter is optional. The constant used by default is tcpCreation: the creation order of columns is taken into account.
Remarks

Use conditions

<Table>.ColumnSubscript can be used on:
  • a browsing or memory control,
  • a single-selection or multiselection control.
    PHP Reminder: Multiselection is not available for Classic Table controls.
PHP This function is available for Table controls in Ajax mode, Table controls in classic mode and TreeView Table controls.
Component: wd260obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment