Hash Variables: Reports

Parent: $root.$hashvars

#P Numeric variable which stores the current page number during the printing of a report instance. #P will return the number of pages in a subtotal and/or totals report section.
#R Numeric variable which stores the current number of records printed during the printing of a report instance.
#SUBFLD String variable which stores the name of the report subtotal field which triggered that subtotal.
 
Thus nam(#SUBFLD) returns a string containing the name of the subtotal field and [#SUBFLD] placed in the subtotal section returns the subtotal value.