Columns

_PAdvance

This used to be one of the most useful of the printer variables. It let you determine whether page breaks were made up of a single form-feed character (Ctrl+L or CHR(12)) or as many linefeeds (CHR(10)) as needed to get to the top of the next page. This one saved an awful lot of people with odd-sized paper.

But, as far as we can tell, it doesn't work with the Report Designer (though we're pretty sure it did in FoxPro 2.x). Since that's the way to go for reporting, _PADVANCE has become obsolete. (It does actually work with @SAY reports, but who wants to write those?)

Usage

_PADVANCE = "FORMFEED" | "LINEFEEDS"

Example

_PADVANCE = "FORMFEED" SET DEVICE TO PRINT SET PRINT TO TEST.TXT FOR nBatch = 1 TO 20    FOR nRow = 1 TO 10       @nRow,1 SAY "Line "+PADL(nRow,2)    ENDFOR ENDFOR SET PRINT TO SET DEVICE TO SCREEN * Check Test.Txt and you'll see the CHR(12)'s after each batch

See Also

Eject, _PLength


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net