@HOUR_SCALE (Minor Axis Hour Scale)

When Y-Axis minor gridlines are enabled, this macro draws a minor axis hour scale on a time axis in a Gantt chart.

SYNTAX:

@@HOUR_SCALE bActivateHours nInterval szHourFormat

PARAMETERS:

bActivateHours; 0=do not show hours, 1=show hours

nInterval; 1...24 interval to show hours. For example, a value of 6 shows a label at every sixth hour: 6AM, Noon, 6PM, etc.

szHourFormat; Label format string. Use standard Windows syntax: h=12-hour AM/PM time, H=24-hour time, h:mm=hours:minutes (e.g., 3:00), etc.

EXAMPLE:

@HOUR_SCALE 1 6 HH~

@HOUR_SCALE 1 4 h:mm~~

PERSISTENT:

NO

REQUIREMENTS:

Crystal Reports 11 or higher

NOTES:

Y-Axis minor gridlines must be enabled

Next Macro Previous Macro Return to Alpha List

Next Macro in this Group Previous Macro in this Group Return to Group List

Next New Macro Previous New Macro Return to New Macros Page