Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable Scope
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01178158
Message ID:
01178440
Views:
13
I'm a little unclear on what you are trying to accomplish but here are some comments that might help you.

You said you have an application object in the app, so can you just reference that directly. For example, create an object on the report and the expression could be _VFP.oApp.cSomeValue. You can use this in the object expression, the print when expression, and anywhere else. You could even create a report variable that returns _VFP.oApp.cSomeValue.

Instead of trying to create a variable in the INIT method of the report, just create a report variable and set it directly. You could set the InitialValue of the variable to what you want and then for the expression of the variable set it equal to itself so it never changes throughout the rest of the report.

Report objects or variables can reference functions or methods that are running in the app. For example, you can have the expression of the object have MySpecialFunction() and the result will be the return value of MySpecialFunction.

I hope this helps
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Reply
Map
View

Click here to load this message in the networking platform