SetSel - method of the PmfTable object
Description:
Sets or disables the selection of rows or cells in the table.
Syntax:
Empty SetSel(Long nType, Variant vPar)
Parameters:
nType | (Long) Type of row or cell selection settings in the table.
0 - Selects rows or cells in the table according to the current value of the SelType property.
- If SelType == "row" then one row of the table is selected and the index of this row is specified in the vPar parameter.
- If SelType == "cell" then one cell of the table is selected and in the vPar parameter specifies the row, column and area index of the table specifying the cell to be selected.
-1 - Deselects rows or cells in the table. |
vPar | (Variant) The value entered here depends on the value of the nType parameter and the value of of the SelType property.
- If nType == 0 then:
- If SelType == "cell" then a PmMap object is entered here.
In the Area, Row and Col properties of this object, the index of the area, row, and column of the table specifying the cell to be selected is specified.
- If nType == -1 then by entering the value null, it will deselect all rows or cells of the table. |
---|
Example1:
JavaScriptSelect and copy to clipboard
oTable.SetSel(0, 5);
Example2:
JavaScriptSelect and copy to clipboard
var mMap = Pm.CreatePmMap();
mMap.Area = 11;
mMap.Row = 5;
mMap.Col = 2;
oTable.SetSel(0, mMap);
Example3:
Deselects the cell or row.
JavaScriptSelect and copy to clipboard
oTable.SetSel(-1, null);