CLOSEDIALOG

Top  Previous  Next

Syntax

CLOSEDIALOG(dlg as DIALOG,OPT ret as INT)

Description

Closes a dialog previously opened with the DOMODAL or SHOWDIALOG commands.

Parameters

dlg - The dialog to close

ret - Optional return value to send to the DOMODAL command

Return value

None

Remarks

The return parameter is ignored for dialogs shown with SHOWDIALOG. For dialogs shown with DOMODAL the ret parameter is traditionally set to @IDOK or @IDCANCEL to indicate the users selection but can be any value you wish.

See Also: DOMODAL, SHOWDIALOG

Example usage

CLOSEDIALOG mydlg, @IDOK