Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why is UDF in detail band called multiple times?
Message
 
To
28/09/2001 10:24:22
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00561609
Message ID:
00562874
Views:
26
>Ah, the old pyjama paper. Well, the principle still holds - have a variable for each band to hold the band expression - a copy of recno() for detail, copy of group expression for each group band, and eof() for the grand total, and compare each time. If it's changed, it's the first call for that band; store the new value to the variable, and do whatever you want.
>
>While the PrintWhen expressions may be evaluated many times (seems to be it recalculates to make sure the line would be blank, if you have "eliminate blank lines" set on), I think the OnEntry expressions would be calculated only once. You could have a separate set of logical variables in the report, set them from OnEntry functions, and have these variables as PrintWhen expressions. Thus you'd calculate only once, and you won't care how many times Fox looks at these variables.

Dragan,

Thanks again for all your help.

Kind Regards,

Mat
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Previous
Reply
Map
View

Click here to load this message in the networking platform