| function PIVar(PIVarName: String): String; |  
   
  
 | This method allows you to initialize the value of a PIVar (Post Initialize Variable). Any PIVars of the same name that were previously printed will show this value. PIVars will use the value that is set after it is printed. A common use for PIVars is to print a total in a header band that would be initialized later in the footer band. This works even across multiple pages. TRvSystem.SystemOptions.soUseFiler must be true if you are using PIVars in your report. |  
   
  
 | with Sender as TBaseReport do begin |  
  |   Print('SubTotal:' + PIVar('SubTotal')); |  
  |   // Other print statements including new pages |  
  |   SetPIVar('SubTotal',FormatFloat(SubTotal)); |  
   
 | rp1->Print("SubTotal:" + PIVar("SubTotal")); |  
  |   // Other print statements including new pages |  
  |   rp1->SetPIVar("SubTotal",FormatFloat(SubTotal));
 |  
  
 |