sapgui_window_scroll_to_row
| Window Functions |
Scrolls to a row.
int sapgui_window_scroll_to_row( const char *newPosition, [args,] LAST );
| newPosition | The row number. |
| args | Optional Arguments |
| LAST | A marker indicating the end of the argument list. Not required if Optional Arguments are used. |
sapgui_window_scroll_to_row scrolls to a window row, but does not set focus or perform any action on that row.
Return Values
This function returns LR_PASS (0) on success or LR_FAIL (1) on failure.
Parameterization
You can parameterize all string (char type) arguments.
Example
The following example uses sapgui_window_scroll_to_row.
sapgui_set_ok_code("VA01", BEGIN_OPTIONAL,
"AdditionalInfo=sapgui109",
END_OPTIONAL);
sapgui_press_button("ENTER (Enter)", "tbar[0]/btn[0]",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1010",
END_OPTIONAL);
sapgui_send_vkey(F4,
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1011",
END_OPTIONAL);
sapgui_select_active_window("wnd[1]");sapgui_window_scroll_to_row("45", BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1014",
END_OPTIONAL);
sapgui_set_focus("usr/lbl[6,26]", BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1013",
END_OPTIONAL);
sapgui_press_button("Copy (Enter)", "tbar[0]/btn[0]",
BEGIN_OPTIONAL,
"AdditionalInfo=sapgui1017",
END_OPTIONAL);

