Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Total Minutes to Hours Minutes in Report Group
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00341419
Message ID:
00341573
Views:
26
>Rick,
>
>I don't get it. Where do you put the function? In report designer, I can see where you can assign a varaible, but no place to add a method like you can in form design.
>
>Thanks again.
>
>>Alan,
>>instead of the code I mention you would just put the function, which would have that code in one place. That makes it easier to maintain, especially if you've got numerous fields that need the same functionality.
>>Rick
>>----------------------------
>>>John,
>>>
>>>I didn't know you could add a function to a report. That will solve a lot of problems for me. How is this accomplished?
>>>
>>>>>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?
>>>>>
>>>>>TIA
>>>>
>>>>Alan,
>>>> You will probably get a few different answers but personally I like to call a function when doing anything like this in a report. In your report group band, or wherever, just put a function such as fnHourMin(). I always start my programs from a main prg with all the functions in it.

You can't ADD a function to the report. You create the function in your app, and just call it from the report. Anywhere you use an expression you can call a function.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform