[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+---------------------------------+
|              TYPE               |
+---------------------------------+
TYPE <file1>
        [TO PRINTER | TO FILE <file2>]
        [NUMBER] [AUTO] [WRAP]

-----------------------------------
Displays contents of an ASCII file on screen, to the current output
window, to a printer or to another file.
-----------------------------------

<file1>
        File to be displayed.  A file name extension must be specified.

TO PRINTER
        Sends output to a printer.  If a printer driver setup is loaded, output
will use the settings of the printer driver setup.

TO FILE <file2>
        Sends output to file <file2>.  If a printer driver setup is loaded,
output will use the settings of the printer driver setup.

NUMBER
        Places a line number at the beginning of each line.

AUTO
        Turns automatic indentation on.  AUTO indents wrapped text in each
paragraph by the same amount as the first line of the paragraph.  For
example:

        .       When a paragraph begins with a Tab, any wrapped lines are aligned
with the Tab.

        .       When a paragraph begins with a number (or other text) followed by a
Tab and text, any wrapped lines are aligned with the Tab.

        .       When the first line of a paragraph is indented using the Spacebar,
any wrapped lines are indented by the same amount as the first line.

WRAP
        Enables word wrap.

FoxPro inserts a formfeed, the path and name of the file and the date at
the beginning of output from TYPE when HEADING is SET ON.

+---------------------------------+
|            Example              |
+---------------------------------+
* This example uses the TYPE command to copy a memo field to a file,
word
* wrapping it to a width of 78 columns.

COPY MEMO memofld TO temp.txt
SET HEADING OFF
SET SAFETY OFF
_WRAP = .t.
_RMARGIN = 78
TYPE temp.txt TO FILE newtemp.txt

-----------------------------------

See Also:  SET HEADING, _PDRIVER, SET PDSETUP

-----------------------------------

See Also: SET HEADING SET PDSETUP
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson