Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use of THIS in a report
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00570893
Message ID:
00570951
Views:
20
Hi Larry,

Aparently there's a bit more to reports than meets the eye.

As Sylvain mentioned, from a report you have access to all the local variables of the entity that called it.

You can also refer to the report's dataenvironment object by using the report's name. i.e. MyReportName.tag. I haven't tried calling de methods from report variables, but I don't see why it couldn't be done.

I've been doing some very neat things with this, such as having standalone reports to which I can pass parameters (as local variables).

I think there's a lot of potential there...

Alex

>Hi All,
>I am in the process of creating a report and I tested something just to see if it would blow up. It didn't so I wanted to see if I am just late in discovering this "feature" and if so, how many out there are using it.
>
>In order to handle a lot of the cursor building stuff, I run my reports through a wrapper class. The class is a form (it used to be the only datasession object around) with a private datasession. I wanted to find out if I could add properties to the wrapper class and use them in the report for header/summary stuff. It worked!! I was able to use AddProperty in the wrapper class and display this on the report using THIS.MyNewProperty. I guess reports are different than PRGs.
>
>Comments?
Low-carb diet not working? Try the Low-food diet instead!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform