Returns or sets line wrapping with Print of a Form or Printer.
[object.]PrintWrap [ = value ]
object:Form or Printer
value:Boolean exp
Determines the wrapping of a string on the output device when the string is about to cross the right boundary. The string is checked to fit in the rest of the line. When the string doesn't fit it will be completely printed on the next line. First a CRLF is invoked, and maybe a NewPage on the Printer, and then the string is printed.
OpenW Full 1
PrintWrap = 1
Local n As Int32
For n = 1 To 3000
Print n; " ";
Next n
With PrintWrap = True and a string a to be printed, the check is like:
If CurrentX + TextWidth(a) > ScaleWidth Then Print
Print a
{Created by Sjouke Hamstra; Last updated: 21/10/2014 by James Gaite}