Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Total Minutes to Hours Minutes in Report Group
Message
From
04/03/2000 09:26:19
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00341419
Message ID:
00341667
Views:
23
>I need to print a total Hours and Minutes on a group break of a report. The table I am reporting from has a "Total minutes" field. What's the best way to do this from within the report?

I once had a report which had to show area in square kilometers, hectars and ars (1 ar=100 m2). I had a report variable, which calculated like this:

TotalM2 as sum of square meters. Expression to print: mod(TotalM2, 100)
Expression to print for hectars: mod(int(totalM2/100), 100), for km2: int(totalm2/10000).

Now for this you may just replace 100s for 60s to get minutes and seconds (if you're having seconds). If you've having more grouping levels, you may need to have more variables totaling the minutes for each level (like TotalMinutesInnerGroup, TotalMinutesOuterGroup, TotalMinutesWholeReport).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform