Page 1 of 1

How to return in GET after button?

Posted: Thu Mar 16, 2006 7:00 pm
by John
Hi,

i want to return in a GET field after pressing a button (this button opens a modify record dialog from the button on the browse dialog).

This worked in an earlier version, but doesn't seem to do the trick anymore:

oGet:oJump:=oButton

Any thoughts?

Best regards,

John.

Posted: Thu Mar 16, 2006 9:27 pm
by Antonio Linares
John,

Don't you mean the opposite ?

oButton:oJump:=oGet

Posted: Fri Mar 17, 2006 6:13 pm
by John
Hi Antonio,

actually neither one does work...

I have a browse on a dialog, together with a GET field (input search string), a Search button and an Edit button (to edit the searched/found record).

What i want to accomplish is that the focus/cursor returns to the GET field after any of the buttons has been clicked.

Perhaps there is a better solution?

Saludos,

John.

Posted: Fri Mar 17, 2006 6:46 pm
by Antonio Linares
John,

Have you tried doing oGet:SetFocus() ?

Posted: Sat Mar 18, 2006 7:22 am
by John
That seems to work, thanks Antonio!