Own Display Format
Hi
I would like to implement my own Display format
1.) The value is given in minutes and i would like to Display hours:minutes
for example (754 -> 12:34, 722 -> 12:02, 20745 -> 345:45)
2.) The value is given as TDateTime and i would like to Display
hours:minutes
for example (0.5 -> 12:00 1.5 -> 36:00)
regards
Andreas
I would like to implement my own Display format
1.) The value is given in minutes and i would like to Display hours:minutes
for example (754 -> 12:34, 722 -> 12:02, 20745 -> 345:45)
2.) The value is given as TDateTime and i would like to Display
hours:minutes
for example (0.5 -> 12:00 1.5 -> 36:00)
regards
Andreas
This discussion has been closed.
Comments
ReportBuilder uses the same display format rules that Delphi uses. Check
out the ppDisplayFormat.pas file for the exact way the display format is
processed.
1. Since there is no "minutes" type in Delphi, I believe you will need to
write a conversion method to display minutes as hours:minutes.
2. Check out the DisplayFormat help for the TDateTime property in the Dephi
help for information on displaying in the format you need.
If you would like to create your own custom display format, (that shows up
in the display format dialog in ReportBuilder), you will need to alter the
TppDisplayFormat.GetDisplayFormats method in the ppDisplayFormat.pas file.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com