Regular API function

simEndDialog / sim.endDialog

Description Closes and releases resource from a previous call to sim.displayDialog. Even if the dialog is not visible anymore, you should release resources by using this function (however at the end of a simulation, all dialog resources allocated from a main script or a child script are automatically released).
C synopsis simInt simEndDialog(simInt genericDialogHandle)
C parameters
genericDialogHandle: handle of generic dialog (return value of simDisplayDialog)
C return value
-1 if operation was not successful
Lua synopsis sim.endDialog(int genericDialogHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
Remote API equiv.
B0-based remote API: simxEndDialog
Legacy remote API: simxEndDialog