Skip to main content

5-4-9 System variables

Variable name

Feature

_PAGE_CNT

Retrieves the page number (sequential number) for a page break unit that occurs due to a key break as numeric-type data.

_PREV_P

Used to determine whether a page break unit that occurs due to a key break is the first page.

_NEXT_P

Used to determine whether a page break unit that occurs due to a key break is the last page.

_PAGE_GROUP_COUNT

Retrieves the group sequential number of the page as numeric-type data.

_TOTAL_PAGE_COUNT

Retrieves the total number of pages as numeric-type data.

_TOTAL_PAGE_CNT

Retrieves the total number of pages for each key break as numeric-type data.

_SERIAL_PAGE_COUNT

Retrieves the report sequential number between the VrInit and VrQuit functions as numeric-type data.

_PAGE_CNT

Feature

Retrieves the page number (sequential number) for a page break unit that occurs due to a key break as numeric-type data.

Usage examples

FORMAT(_PAGE_CNT,"ZZ9")

Reference

  • If you select the Clear page count check box for a field, you can initialize the page numbering using the page break key that you specified.

  • The page number is cleared when the VrEndPage or VrPrint function is executed.

    For details of the VrEndPage and VrPrint functions, see "SVF Java PRODUCTS API Reference Manual".

_PREV_P

Feature

Used to determine whether a page break unit that occurs due to a key break is the first page.

Description

0: Page top

1: Page continued from the previous page

Usage examples

IF(_PREV_P=1,"Carried forward from previous page","")

_NEXT_P

Feature

Used to determine whether a page break unit that occurs due to a key break is the last page.

Description

0: Last page

1: Page continued to the next page

Usage examples

IF(_NEXT_P=1,"Carries forward to next page", "")

_PAGE_GROUP_COUNT

Feature

Retrieves the group sequential number of the page as numeric-type data.

Usage examples

FORMAT(_PAGE_GROUP_COUNT,"ZZ9")

_TOTAL_PAGE_COUNT

Feature

Retrieves the total number of pages as numeric-type data.

Description

By using this system variable in an edit-formula, the total number of pages will be stored in this variable.

You can also use _TOTAL_PAGE_COUNT to retrieve the total number of pages across multiple forms.

However, you must specify it together with _SERIAL_PAGE_COUNT.

Usage examples

FORMAT(_TOTAL_PAGE_COUNT,"ZZ9")

_TOTAL_PAGE_CNT

Feature

Retrieves the total number of pages for each key break as numeric-type data.

Description

By using this system variable in an edit-formula, the total number of pages for each key break will be stored in this variable.

Usage examples

FORMAT(_TOTAL_PAGE_CNT,"ZZ9")

_SERIAL_PAGE_COUNT

Feature

Retrieves the report sequential number between the VrInit and VrQuit functions as numeric-type data.

Description

If you specified multiple forms between the VrInit and VrQuit functions, you can retrieve the page sequential number, even if you have made changes to the XML form file, by setting the _SERIAL_PAGE_COUNT variable in the report.

Usage examples

FORMAT(_SERIAL_PAGE_COUNT,"ZZ9")

Restriction

  • The four system variables, _PAGE_GROUP_COUNT, _TOTAL_PAGE_COUNT, _TOTAL_PAGE_CNT, and _SERIAL_PAGE_COUNT, are only available when the VrSetForm function mode is set to the Report-writer mode (4 or 5).

  • If you are retrieving the total pages in SVF using _TOTAL_PAGE_COUNT or _TOTAL_PAGE_CNT, the processing speed will be slower than the normal processing time, since the program will be running twice internally.

  • If you are specifying multiple XML form files between the VrInit and VrQuit functions, and you want to retrieve the total number of pages using the _TOTAL_PAGE_COUNT variable, you must specify the _SERIAL_PAGE_COUNT variable in the first XML form file that you specified.