SaveToString - method of object PmDataTable

Creates a string value from selected data item values of the object.
SaveToString(sType As String, index As Variant) As String
string = oDataTable.SaveToString(sType, index)
sType(String) Type of selected values in the table:
"Row" - One row of the table is selected. The value index must be an integer.

index>=0 means the index of the selected row (zero-based index).

index=-2 means the last row.

"Col" - One column of the table is selected. The value index must be a String type or an integer.

If it is the String, then it is the column name.

If it is the integer, then index>=0 means the index of the selected column (zero-based index), index=-2 means the last column.

index(Variant) Index into the table whose meaning is defined by the sType parameter
For the form of the text value see the description of the PmData.SaveToString method. For assignment of values from the variable of the String type (opposite method to the SaveToString) serves the PmDataTable.LoadFromString method.
The variable sString is set by the content of the last table row:
VBScriptSelect and copy to clipboard

Dim sString
sString = oDataTable.SaveToString("Row", -2)
PROMOTIC 8.3.30 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