The DISPLAY command will display an object in temporary storage or an existing object that was saved in the database. DISPLAY for an object in temporary storage will act only upon the current object; there is no way to DISPLAY an object from temporary storage that is not the current object.
For example, consider the following procedure:
DISPLAY QUERY Q1
DISPLAY QUERY Q2
DISPLAY FORM F1
DISPLAY QUERY
After this procedure runs, query Q2 is the active window, and is the current query object. Query Q1 is inaccessible from any command accessing temporary storage. F1 is the current form object and is accessible from a command accessing the current form object in temporary storage. For example, DISPLAY FORM would display F1.
For a target object in the database:
>>-- DISPLAY ------------- ObjectName -----------------------------------<< +- QUERY -+ +- FORM --+ +- PROC --+ +- TABLE -+
For a temporary target object:
>>-- DISPLAY --- QUERY --------------------------------------------------<< +- FORM ---+ +- PROC ---+ +- REPORT -+
DISPLAY QUERY USER1.QUERY1