GRAPHIC GET WRAP statement  

Purpose

Retrieves the status of Graphic Wrap Mode.

Syntax

GRAPHIC GET WRAP TO WrapVar&

Function Form:

WrapVar& = GRAPHIC(WRAP)

Remarks

GRAPHIC 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 graphic target which is currently attached to the graphic stream.

With Wrap Mode, you can control how PowerBASIC prints text on a graphic target when it reaches the end of a line.  Since a graphic target 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 GRAPHIC SET WRAP.

When Wrap Mode is enabled, it affects only GRAPHIC PRINT operations.  If GRAPHIC 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

GRAPHIC CELL, GRAPHIC GET WORDWRAP, GRAPHIC SET WORDWRAP, GRAPHIC SET WRAP, GRAPHIC SPLIT