PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Use conditions
  • The different types of column subscripts
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 name of a column found in a Table or Treeview Table control.
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
// Name of third column found in the "TABLE_ProductTable" control
ResColumnName = TABLE_ProductTable.EnumColumn(3)
Versions 21 and later
iPhone/iPad
// Handle the column via a Control variable
pCol is Control
pCol <- TABLE_ProductTable.EnumColumn(3)
New in version 21
iPhone/iPad
// Handle the column via a Control variable
pCol is Control
pCol <- TABLE_ProductTable.EnumColumn(3)
iPhone/iPad
// Handle the column via a Control variable
pCol is Control
pCol <- TABLE_ProductTable.EnumColumn(3)
Versions 21 and later
iPhone/iPad
// Enumerate all columns found in the Table control "TABLE_ProductTable"
AColumn is Control
FOR nColumn = 1 _TO_ TABLE_ProductTable.Count(toColumn)
AColumnn <- TABLE_ProductTable.EnumColumn(nColumn)
Trace(AColumn..FullName + "//" + AColumn..Title)
END
New in version 21
iPhone/iPad
// Enumerate all columns found in the Table control "TABLE_ProductTable"
AColumn is Control
FOR nColumn = 1 _TO_ TABLE_ProductTable.Count(toColumn)
AColumnn <- TABLE_ProductTable.EnumColumn(nColumn)
Trace(AColumn..FullName + "//" + AColumn..Title)
END
iPhone/iPad
// Enumerate all columns found in the Table control "TABLE_ProductTable"
AColumn is Control
FOR nColumn = 1 _TO_ TABLE_ProductTable.Count(toColumn)
AColumnn <- TABLE_ProductTable.EnumColumn(nColumn)
Trace(AColumn..FullName + "//" + AColumn..Title)
END
Syntax
<Result> = <Table control>.EnumColumn(<Column subscript>)
<Result>: Character string
  • Name of column.
    Versions 21 and later
    iPhone/iPad This result can be assigned to a Control variable.
    New in version 21
    iPhone/iPad This result can be assigned to a Control variable.
    iPhone/iPad This result can be assigned to a Control variable.
  • Empty string ("") if <Column subscript> is equal to the number of columns in the Table control + 1.
<Table control>: Control name
Name of Table control to use.
<Column subscript>: Integer
Subscript of the column, included between 1 and the number of columns found in the Table control + 1.
A WLanguage error occurs if this parameter is greater than the number of columns found in the Table control + 1.
To find out the number of columns in a Table control, use <Table>.Count.
Remarks

Use conditions

<Table>.EnumColumn can be used on:
  • a browsing or memory control,
  • a single-selection or multiselection control,

The different types of column subscripts

Two types of subscripts are available for the columns:
  • Subscript of the visible position: subscript of the column when running the window.
  • Creation subscript: subscript of the column when creating the control in the window editor.
These two types of subscripts are returned by <Table>.ColumnSubscript.
These subscripts are different if the columns have been moved by the user.
<Table>.EnumColumn is using the creation subscript of the column.
Component : wd250obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment