共用方式為


LIST Commands

Continuously displays table or environment information.

LIST   [FIELDS FieldList]    [Scope] [FOR lExpression1]
 [WHILE lExpression2]   [OFF]   [NOCONSOLE]   [NOOPTIMIZE]
   [TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]]
-or-
LIST FILES   [ON Drive]    [LIKE FileSkeleton]
   [TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]]
-or-
LIST MEMORY   [LIKE FileSkeleton]   [NOCONSOLE]
   [TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]]
-or-
LIST STATUS   [NOCONSOLE]   
[TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]]
-or-
LIST STRUCTURE   [IN nWorkArea | cTableAlias]   [NOCONSOLE]
   [TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]]

Remarks

These LIST commands are identical to the DISPLAY commands except for the following differences:

  • ADDITIVE
    Appends to the end of the named file. If you omit ADDITIVE, the file is overwritten with the value of the expression.
  • The scope for LIST defaults to ALL records.
  • LIST doesn't prompt you after filling the main Microsoft Visual FoxPro window or a user-defined window with information.
  • LIST doesn't display records flagged for deletion when SET DELETED is ON.

For more information about the LIST commands, see the corresponding commands in DISPLAY.

See Also

DISPLAY | DISPLAY FILES | DISPLAY MEMORY | DISPLAY STATUS | DISPLAY STRUCTURE | SET DELETED