GetSel - method of the PmfTable object
Description:
Detects selected rows or cells.
Syntax:
Variant GetSel(Long nType)
Parameters:
| nType | (Long) Must be always the 0 value. |
|---|
Return value:
The return value depends on setting of the
SelType property.
- If nothing is selected then
null is returned.
- If the
SelType is ==
"row" then the
PmMap object is returned, containing set properties:
mRet.Row - The number of the selected row.
- If the
SelType is ==
"cell" then the
PmMap object is returned, containing set properties:
mRet.Row - The number of the selected row.
mRet.Col - The number of the selected column.
Example1:
JavaScriptSelect and copy to clipboard
var mRet = oTable.GetSel(0);
if (mRet)
{
Pm.Debug("PmfTable.GetSel Row=" + mRet.Row);
}