DISPLAY MEMORY Command

Example   See Also

Displays the current contents of variables and arrays.

Syntax

DISPLAY MEMORY
  [LIKE FileSkeleton]
  [TO PRINTER [PROMPT] | TO FILE FileName]
  [NOCONSOLE]

Arguments

LIKE FileSkeleton

Displays information about variables and arrays that match the skeleton pattern FileSkeleton. If you include LIKE FileSkeleton, Microsoft Visual FoxPro displays only the contents of variables and arrays that match FileSkeleton. FileSkeleton supports wildcards such as ? and *. For example, to display all variables that begin with the letter A, issue:

DISPLAY MEMORY LIKE A*

TO PRINTER [PROMPT]

Directs output from DISPLAY MEMORY to a printer.

You can include the optional PROMPT clause to display a dialog box before printing starts. In this dialog box, you can adjust printer settings, including the number of copies and page numbers to print. The printer settings that you can adjust depend on the currently installed printer driver. Place the PROMPT keyword immediately after TO PRINTER.

TO FILE FileName

Directs output from DISPLAY MEMORY to the file specified with FileName. If the file already exists and SET SAFETY is ON, you are asked if you want to overwrite the file.

NOCONSOLE

Suppresses output to the main Visual FoxPro window or to the active user-defined window.

Remarks

DISPLAY MEMORY shows the name, type, contents, and status of all currently defined variables and variable arrays. It also displays the number of variables defined, the number of bytes used, and the number of additional variables available. Note that the number of bytes used represents memory used by character type variables. Character type variables are the only type of variables that require additional memory beyond that allocated by the variable count specified with the MVCOUNT configuration item.

Information about system variables, menus, menu bars, menu titles, and windows is also displayed.