When you script in the rowfocuschanged event the variable currentrow is available to you to use it as you wish:
event rowfocuschanged (long currentrow) returns long [pbm_dwnrowchange]
MessageBox('RowFocusChanged', 'Current row: ' + string(currentrow))