Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetColParam - method of object PmDataTable

Description:
The method gets the parameter (name, data type) of the selected column.
Syntax:
GetColParam(Col As Variant, sType As String) As Variant
Calling:
v = oDataTable.GetColParam(Column, sType)
Parameters:
Col(Variant)

If the value of the parameter is the number >=0, then it is the column index (zero-based index).

The value -2 means the last column of the table.

If the value of the parameter is of the String type, then it is the column name.

sType(String) Type of the parameter that has to be found out
"Name" - The method returns String - name of the column
"Index" - The method returns Long - the column index (zero-based index)
"Dt" - The method returns Integer - data type of the column (see VBScript constants of data types).
Example:
Getting the name of the second column:
sName = oDataTable.GetColParam(1, "Name")
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice