Name
moai.FreeDialog -- delete a dialog object
Synopsis
moai.FreeDialog(id$)
Function
This function can be used to delete a dialog object created by moai.CreateDialog(). Normally, it isn't necessary to call this function because dialogs are automatically destroyed by Dialog.EndModal or when the dialog function returns. If you need fine-tuned control over dialog destruction, you can use this function, though.

moai.FreeDialog() will first detach the dialog from the application object and then free it. So technically speaking, this function is just a convenience function which internally removes the dialog object from the application object by calling Application.RemoveWindow and then calls moai.FreeObject() to free the dialog object. moai.FreeDialog() simply combines these two steps into one.

See Dialog class for more information on dialogs.

Inputs
id$
identifier of dialog object to free

Show TOC