Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 879 Bytes

s4g180.md

File metadata and controls

27 lines (20 loc) · 879 Bytes

ACTIVATE SCREEN

By default, output from many commands goes to the active window. ACTIVATE SCREEN lets you direct it to the main Visual FoxPro window instead.

Usage

ACTIVATE SCREEN

When a user-defined window (including one containing a form) is active, issuing a command like DISPLAY MEMORY or ? sends the output to the window. That's not usually what you want. It sure isn't when we do it. Issue ACTIVATE SCREEN before the DISPLAY whatever or ?, and the output goes to the main window instead.

Example

DEFINE WINDOW Test AT 0,0 SIZE 10,100
ACTIVATE WINDOW Test
* Now all output goes to window Test - prove it
DISPLAY MEMORY
* That's no good - try again
ACTIVATE SCREEN
DISPLAY MEMORY      && much better
RELEASE WINDOW Test && clean up

See Also

Activate Window, _Screen