"lineNumbers"
Returns the line number of the rows that are stated inside the mapping keys.
Synopsis
shape.lineNumbers(mapping keys, dyn_int &numbers);
Parameter
Parameter | Description |
---|---|
shape | Name of the shape |
keys | A mapping, containing the necessary rows. |
numbers | A list of integer values, which is used to save the line numbers. |
Description
lineNumbers uses the mapping to look for matching entries inside the table and saves the corresponding line number to the numbers list.
Example
main()
{
TABLE1.updateLines(1, "#1", makeDynString("1", "2", "3", "4", "5"),
"#1", makeDynString("1", "2", "3", "4", "5"),
"#2", makeDynBool(1, 0, 1, 0, 1));
mapping keys;
keys["#1"] = makeDynString("1", "2", "5553", "4", "5");
//Option 1
dyn_int lines;
getValue("TABLE1", "lineNumbers", keys, lines);
//Option 22
DebugN(lines);
DebugN(table.lineNumbers(keys));
}
Assignment
Table