IsWIndowDefined()
  

Determine if a window is defined.

SYNTAX

IsWIndowDefined ( WindowName ) --> lBoolean

or

_IsWIndowDefined (<WindowName>) --> lBoolean

EXAMPLES

Checking through name Window in literal form:


#include "minigui.ch"

PROCEDURE Test

LOCAL FormName AS STRING := "Form_1"

IF ! IsWIndowDefined ( &FormName )

DEFINE WINDOW &FormName ;
AT 0,0 ;
WIDTH 400 ;
HEIGHT 200 ;
TITLE 'Hello World!' ;
MAIN

END WINDOW

ACTIVATE WINDOW &FormName

ENDIF

RETURN

or through name Window by variable:

#include "minigui.ch"

PROCEDURE Test

LOCAL FormName AS STRING := "Form_1"

IF !_IsWIndowDefined ( FormName )

DEFINE WINDOW &FormName ;
AT 0,0 ;
WIDTH 400 ;
HEIGHT 200 ;
TITLE 'Hello World!' ;
MAIN

END WINDOW

ACTIVATE WINDOW &FormName

ENDIF

RETURN