Control.countRows


countRows(varName)

Returns how many 'rows' of the given value exist within this object. Generally, rows represent rows in grids in the LUSAS Modeller user interface If this function returns 0, getValue and setValue should be called without the optional 'row' argument, or with it set to -1. If this function returns 1 or more, getValue and setValue will require the extra 'row' argument which should be in the range (0..nrows-1).

Note that many values are implemented as arrays, whether or not they are present in rows. The only way to discover whether a particular value is row-based or array-based (or both) is to call both countRows and getValue

varNamestringname of the value (e.g. "E")
Return valueLONG_PTR

Back to Control

Back to Overview