Regular API function

simEndDialog
remote API equivalent: simxEndDialog
RosPlugin API equivalent: simRosEndDialog

Description Closes and releases resource from a previous call to simDisplayDialog. 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. In a future release, a more differentiated return value might be available
Lua synopsis number result=simEndDialog(number genericDialogHandle)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page