Regular API function

simGetDialogResult / sim.getDialogResult

Description Queries the result of a dialog box. To be used after sim.displayDialog was called
C synopsis simInt simGetDialogResult(simInt genericDialogHandle)
C parameters
genericDialogHandle: handle of the generic dialog
C return value
result of the dialog or -1 in case of an error.

Note. If the return value is sim_dlgret_still_open, the dialog was not closed and no button was pressed. Otherwise, you should free resources with simEndDialog (the dialog might not be visible anymore, but is still present)
Lua synopsis int result=sim.getDialogResult(int genericDialogHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart
Remote API equiv.
B0-based remote API: simxGetDialogResult
Legacy remote API: simxGetDialogResult