LOAD WINDOW Command

 

Loads a Window which has been defined in a seperate Window Definition file

 

 

Description:

 

This command is issued in a program file (.prg) and instructs the program to load a window defined in an HMG Window definition file (.fmg). This is a text file containing a Window definition in standard HMG code, using standard HMG syntax, with the exception of the Window name. Instead of a Window name, the file (.fmg) contains a DEFINE WINDOW TEMPLATE command instead. Refer to the Syntax section below for details on how to manage this

 

Syntax:

 

    LOAD WINDOW <FileName> [ AS <WindowName> ]

 

Valid For Use With:

 

This command can be used in any source code file that needs to load a Window defined in a seperate Window Definition file (.fmg)

 

Notes:

  1. When the AS <WindowName> clause is omitted, the Window Definition file (.fmg) name (excluding the extension) is assumed as the Window name

  2. This command is most frequently used to load a Window that has been designed using the HMG IDE

  3. The original version of the help file for this item can be viewed here

Sample Code:

 

A sample source code (.prg) file can be viewed here

 

A sample HMG Window definition file (.fmg) file can be viewed here. Note the difference at the start of line 4 where DEFINE WINDOW TEMPLATE is used without a Window name