GetCurrentRow() retrieves the current row in the list - for instance, in DISPLAY ARRAY or INPUT ARRAY:
It needs the name of the screen array as an argument:
DIALOG
DISPLAY ARRAY orders TO ordes_scrarr.*
BEFORE ROW
MESSAGE "You’re in row #:" || DIALOG.getCurrentRow("orders_scrarr")
...
END DISPLAY
INPUT ARRAY clients TO client_scrarr.*
BEFORE ROW
MESSAGE"You’re in row #" || DIALOG.getCurrentRow("client_scrarr")
...
END INPUT
This method's effect is identical to the scr_line() function.
There are some specifics about using variables with ui.Dialog methods.
You can learn about them here.