Infolinks

Saturday 21 July 2012

srw-get_page_num

Description  This procedure returns the current page number.  This is useful when you want to use the page number in the field’s Format Trigger property.
Syntax
SRW.GET_PAGE_NUM (page_num);
Parameters
page_num      Is the variable in which you want to place the current page number.
Returns        The current page number.
Restrictions
SRW.GET_PAGE_NUM is only meaningful in a format trigger.  It has no effect when entered in other places.

Example
/* Suppose you want to perform a computation based upon a page number.
** In the field’s Format Trigger, you could use SRW.GET_PAGE_NUM function:
*/
BEGIN
DECLARE PAGE_NUM NUMBER;
  begin
     srw.get_page_num (page_num);
     srw.set_field_num (0, page_num + 3);
  end;
END;

No comments:

Post a Comment