magicformwindow
DATABASE
,
FORM

The magicformwindow statement designates an open window as the temporary active window for the purposes of info( functions and graphic statements.


Parameters

This statement has two parameters:

database – is the database that contains the window you want to designate as the “magic window.” This database must be open (in memory).

form – is the form corresponding to the window you want to designate as the “magic window.” This statement allows the window name to be different than the form name (for example if you have used the windowname statement.


Description

This statement designates an open window as the temporary active window for the purposes of info( functions and graphic statements. It does not change the actual active (frontmost) window, and does not affect database operations like data entry, sorting and searching.

This example finds out the current dimensions (location and size) of the Plain form in the Checkbook database. This example assumes that the form is already open.

magicformwindow "Checkbook","Plain"
windowDimensions=info("windowrectangle")
magicwindow ""

The magicwindow "" statement on the last line of the above example cancels the previous ”magic window" designation.

Note: This statement is nearly identical to the magicwindow statement. Use magicformwindow when you know the form name but do not know the window name (for example if the window title was changed.)


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.