This is a method is based in programing methods I learned from Razzak and
should get you what you need
Put two buttons on you form (First Row, Last Row)
In the button properitys put this in the eep field
Button.EEP USING 1
and the next one
Button.EEP USING 2
---------------------------
--Button.EEP
CLS
SAVEROW
SET VAR vButton = .%1
CLOSEWINDOW
RETURN
---------------------------
Now in your .RMD file that is used to open the form you need some code
something like this
----------------------------------------
SET VAR vButton = NULL
LABEL START
IF vButton = 1 THEN
EDIT USING "your from name" order by "some column name" ASC
ELSE
EDIT USING "your from name" order by "some column name" DESC
ENDIF
IF vButton = 1 THEN
GOTO START
ENDIF
IF vButton = 2 THEN
GOTO START
ENDIF
-------------------------------------------
What happens is button.eep closes the form and sets the var vButton but
the *.RMD file is still running. The *.RMD file looks at vButton value
goes back to the start reopening the form at the last row or first row
On 12 Feb 2004 at 12:11, Shane Handley wrote:
> Hi all,
>
> I am running RB6.5++ and was wondering if there is a way to move to the
last
> row within a tiered form by clicking a button.
>
> If it helps, each row already contains a unique value, so if it is
possible to move
> to a row based on this columns value, I would greatly appreciate some
example
> code.
>
> Thanks in advance.
>
> Shane Handley
>
>
Victor Timmons
Tiz's Door Sales, Inc
425-258-2391