_PADVANCE System Variable

Included for backward compatibility. Use the Report Designer instead.

This system variable is undocumented in the original VFP9 help file,
but the following documentation was found in the FoxPro for Windows 2.6 help, and may still be valid:

Sets the page advance method.

_PADVANCE = expC

Parameters

expC must evaluate to one of the following:

FORMFEED Sends a form feed character when the page advances. FORMFEED is the default. This option uses the printer's internal top-of-form controls.

LINEFEEDS Sends a calculated number of line feeds when the page advances. This option positions the printer at the top of the next page by internally calculating how many line feeds are needed and then sending that number of continuous line feeds.

When calculating how many line feeds to send, FoxPro uses the formula (_PLENGTH - _PLINENO) in the following situations:

  • When you issue EJECT PAGE without an ON PAGE handler


  • When you issue EJECT PAGE with an ON PAGE handler and the line position is greater than the ON PAGE line value


  • When PRINTJOB or ENDPRINTJOB cause _PEJECT to send a page eject to the printer


  • FoxPro uses the formula (_PLENGTH - MOD(PROW(), _PLENGTH)) when you issue:

  • EJECT


  • SET DEVICE TO PRINTER and force an eject with a subsequent @ ... SAY


  • Despite the setting of _PADVANCE, you can always send a form feed character to the printer by outputting CHR(12).

    Expand imageRemarks

    Expand imageSee Also


    © , 1996-2020 • Updated: 11/10/20
    Comment or report problem with topic