GetColParam - method of the PmaDataTable object

The method gets the parameter (name, data type) of the selected column.
Variant GetColParam(Variant Col, String sType)

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 - column index (zero-based index)
"Dt" - The method returns Integer - data type of the column (see VBScript constants of data types).
Detects the name of the second column:
JavaScriptVBScriptSelect and copy to clipboard

var oDataTable = pMe.Pm("/DataTable");
var sName = oDataTable.GetColParam(1, "Name");
var sIndex = oDataTable.GetColParam(1, "Index");
var nDtType = oDataTable.GetColParam(1, "Dt");
PROMOTIC 9.0.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice