LoadFromString - method of object PmDataTable

Assignment of selected table values from the string value.
LoadFromString(sType As String, index As Variant, sString As String) As Long
oDataTable.LoadFromString sType, index, sString
sType(String) Range 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 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
sString(String) Text value created for example by the PmDataTable.SaveToString method.
Return Values:
Returns the number of set items.
For the form of the text value see the description of the PmData.SaveToString method.

"Read only" columns: Each cell is empty at the beginning. The cell is considered empty also if it contains numeric value 0 or an emty string "". New value can be written into such cell. After writing a non-zero value into the "Read only" column the cell is "locked". "Locked cell" becomes a constant and cannot be written again. Other still "unlocked" cells can be written into as needed. Methods that write into multiple cells simultaneously will write the values only into "unlocked cells" while the content of "locked" cells remains unchanged.

The last row of the table is set by the content of the sString variable
sString = "1;3;5"
oDataTable.LoadFromString "Row", -2, sString
PROMOTIC 8.3.20 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