XPRINT GET WRAP statement  

Purpose

Retrieves the status of XPRINT Wrap Mode.

Syntax

XPRINT GET WRAP TO WrapVar&

Function Form:

WrapVar& = XPRINT(WRAP)

Remarks

XPRINT GET WRAP retrieves the status of wrap mode and assigns it to the variable specified by WrapVar&.  If Wrap Mode is enabled, the value true (non-zero) is assigned.  If it's disabled, the value false (zero) is assigned instead.  The value returned reflects the status of the attached printer.

With Wrap Mode, you can control how PowerBASIC prints text on an XPRINT page when it reaches the end of a line.  Since XPRINT operates on a full page basis, the default is to ignore text which is printed past the end of the line.  This can be modified under program control by using XPRINT SET WRAP.

When Wrap Mode is enabled, it affects only XPRINT print operations. If XPRINT print attempts to display a character beyond the end of a row, it is automatically wrapped to the first column of the next row.

See also

XPRINT CELL, XPRINT GET WORDWRAP, XPRINT SET WORDWRAP, XPRINT SET WRAP, XPRINT SPLIT