UI_MODELESS_DLG_EXIST()

Syntax

Result_Flag as L = UI_MODELESS_DLG_EXIST( Title as C )

Argument

Description

Result_Flag

  • .T. = The dialog box exists.

  • .F. = The dialog box does not exist.

Title

The title of the dialog.

Description

The UI_MODELESS_DLG_EXIST() function indicates whether a modeless dialog box exists.

Example

This example creates a modeless dialog, then uses UI_MODELESS_DLG_EXIST()to see if it exists.

ui_modeless_dlg_box("Basic Modeless Dialog", <<%dlg%

{xmargin=10}

{ymargin=2}

<20,2Click Here!MyButton>

%dlg%, <<%code%

if a_dlg_button="MyButton"

ui_modeless_dlg_close("Basic Modeless Dialog")

end if

%code%)

if (UI_MODELESS_DLG_EXIST("Basic Modeless Dialog")=.t.) then

ui_msg_box("UI_MODELESS_DLG_EXIST()", "Found it!")

end if

See Also

Xdialog Function Reference

Supported By

Alpha Five Version 5 and Above