First record in the current viewport

Well ... actually this will give you the first row of the query which is not necessarily the same as the first row in the view-port of the browse widget.

Most of the browse widget's method work with the row number of the view-port - in which case the first row of the view-port is always 1. You could use the SELECT-ROW ( 1 ) method of the browse widget. This will also transfer the corresponding row of the query in the record buffer so that you can identify it with an identifying field ...

Have a look under "browse widget" in the help that comes with the product.


Heavy Reagards, RealHeavyDude.
 
Can I do the same without selecting the row?

Currently I am doing a SELECT and DESELECT:

mybrowse:SELECT-ROW(1).
rCurFirstRowId = ROWID(mytemptable).
mybrowse:DESELECT-SELECTED-ROW(1).

I just want to read the rowid of the first record.
 
Back
Top