ViewFieldCodes, ViewFieldCodes()

Syntax

ViewFieldCodes [On]

ViewFieldCodes()

Remarks

The ViewFieldCodes statement controls the display of all fields in the active document. The display of field codes is specified by the Field Codes check box on the View tab in the Options dialog box (Tools menu). You can control the display of selected fields with the ToggleFieldDisplay statement.

Argument

Explanation

On

Specifies how to display fields:

0 (zero) Displays field results.

1 Displays field codes.

Omitted Toggles the display of fields.


The ViewFieldCodes() function returns the following values.

Value

Explanation

0 (zero)

If field results are displayed

–1

If field codes are displayed


See Also

ToggleFieldDisplay, ToolsOptionsView