Regular API function

simGetDialogResult / sim.getDialogResult

Description Deprecated. See simUI.msgBox or simUI.inputDialog instead.
C/C++
synopsis
int simGetDialogResult(int genericDialogHandle)
C/C++
parameters
genericDialogHandle: handle of the generic dialog
C/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