Lingo Dictionary > D-F > forget window

 

forget window

Syntax

window(whichWindow).forget()
forget window whichWindow

Description

Window property; instructs Lingo to close and delete the window specified by whichWindow when it's no longer in use and no other variables refer to it.

When a forget window command is given, the window and the movie in a window (MIAW) disappear without calling the on stopMovie, on closeWindow, or on deactivateWindow handlers.

If there are many global references to the movie in a window, the window doesn't respond to the forget command.

Example

This statement instructs Lingo to delete the window Control Panel when the movie no longer uses the window:

window("Control Panel").forget()

See also

close window, open window