Language Reference Guide : 4. System Classes : TableField Class : CurRow Attribute
 
Share this page                  
CurRow Attribute
Data Type: integer
4GL Access: RW
The CurRow attribute specifies the number of the row in a data array that last had the input focus.
This attribute has meaning only in a running frame. The value is set to zero before the input focus is moved to the table field. When the user moves between rows in the table field, the CurRow attribute contains the number of the row being entered.
If the input focus is moved away from the table field, the CurRow attribute remains set to the row that last had the input focus. This behavior is unlike that of the ActiveRow attribute, which is set to zero if the input focus is moved away from the table field.
In the following syntax, OpenROAD uses the CurRow value as the row number:
TableFieldname[].columnname
For a table field with default settings for SelectionType (SEL_SINGLE) and ScrollingChangesSelection (FALSE), setting CurRow also changes the selected row. For nondefault settings, the selection or selections do not change.