Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Setting the cursor position on a pushbutton

Former Member
0 Likes
728

Hi,

I have a screen with some fields and 2 pushbuttons on the screen. Depending on the previous screen command, we need to set the cursor position on one of the pushbuttons on this screen. How to set the cursor position on the pushbutton dynamically?

Thanks

1 REPLY 1
Read only

Former Member
0 Likes
469

Hi

Use SET CURSOR command, the pushbotton are screen fields too. So:

PROCESS PBO.

MODULE SET_CURSOR.

MODULE SET_CURSOR.

IF .......

SET CURSOR FIELD <PUSHBUTTON_1>.

ELSE.

SET CURSOR FIELD <PUSHBUTTON_2>.

ENDIF.

ENDMODULE.

Max

Message was edited by: max bianchi