"getSelectedLines"
Returns the indices of the selected rows.
Synopsis
getValue(string shape, "getSelectedLines", dyn_int &lines);
Parameter
Parameter | Description |
---|---|
shape | Name of the object |
lines | Array containing the row numbers, starting at 0. |
Description
Returns the selected rows in a dyn_int in the order in which they were clicked. The row indexing starts at 0. Remember that the selection of specific rows in a table depends on the table mode (see also "tableMode").
Example
In the following example, first a line will be selected.
main()
{
TABLE1.tableMode=TABLE_SELECT_BROWSE;
TABLE1.selectLineN(2);
}
In the next example, the table is then queried with getSelectedLines().
main()
{
dyn_int myLines;
getValue("TABLE1", "getSelectedLines", myLines);
DebugN("Lines ", myLines);
}
Assignment
Table