Skip to the content.

This chapter is obsolete with hmReports 3.0! Please do not use this variables in new reports.

You can use instead of hmRep_Date a script “$0:=String(Current Date)” You can use instead of hmRep_Time a script “$0:=String(Current Time)” You can use instead of hmRep_Area all report/object properties directly” You can use instead of hmRep_ObjectID all report/object properties directly” You can use instead of hmRep_Record all section properties directly” You can use instead of hmRep_Page all report properties directly” You can use instead of hmRep_ReportPage all report properties directly”

hmReports provides some standard variables you can use in your scripts or directly.

For SuperReport Pro compatibility, hmReports also supports SRP variables. You can still use them but you should convert them into hmReports variables in the future.

Before using the variables in your database (before open the form with the hmReports area on it), you should declare and define all variables you want to use. For example, the On Load procedure may have the following code:

C_DATE(hmRep_Date)
C_TIME(hmRep_Time)
C_LONGINT(hmRep_Area;hmRep_ObjectID;hmRep_Record;hmRep_Page;hmRep_ReportPage)

hmRep_Date:=!00.00.00!
hmRep_Time:=†00:00:00†
hmRep_Area:=0
hmRep_ObjectID:=0
hmRep_Record:=0
hmRep_Page:=0
hmRep_ReportPage:=0

The following variables are available in hmReports:

hmReports Standard Variables

hmRep_Date

hmRep_Time

hmRep_Area

hmRep_ObjectID

hmRep_Record

hmRep_Page

hmRep_ReportPage

The different between hmRep_Page and hmRep_ReportPage

There is a different between the variables hmRep_Page and hmRep_ReportPage if you are using more than one page in the report.

For example:

If you have two pages defined: 1st page is a static page and the 2nd page is a report page definition which may have 5 pages as result.

The result is: