getCurrentRow()

GetCurrentRow() retrieves the current row in the list - for instance, in DISPLAY ARRAY or INPUT ARRAY:

DISPLAY DIALOG.getCurrentRow("client_scrarr")

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

Note: This method can also be used outside DISPLAY ARRAY and INPUT ARRAY - for example, in the FUNCTION block.

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.

 

Contact Us

Privacy Policy

Copyright © 2025 Querix, (UK) Ltd.