Getting the Value of the Active Cell in a Browse

Description

This technique returns the value of the current cell of a browse when the user double clicks. This example displays the cell value in a message box.

  1. Place the browse in design mode.

  2. Select Browse > Events > OnRowDblClick.

  3. Enter the following code. Substitute the name of your browse for "CustomerBrowse".

    temp1=CustomerBrowse.active()
    temp2=eval("CustomerBrowse:" + temp1 + ".text")
        ui_msg_box("","" + temp2)
    end

See Also