Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing form's properties inside a report
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00230268
Message ID:
00230917
Views:
22
>Juan...
>
>Doesn't THISFORM lose scope inside the report? The report thinks that THISFORM is supposed to be an alias in an open workarea. Try instantiating a memvar to hold THISFORM (goForm = THISFORM) before running the report, and using goForm.MyProperty instead.
>
>Scott
>
>>How can i reference a form's property inside a report?
>>i.e: I want the report to print myform.my_property
>>
>>I can't issue thisform.my_property because i get an error message.
>>
>>Thanks
>>
>>Juan Carlos

If you run the report from the form (or any form control code) THISFORM does not loose the scope. I use this approach all the time.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform