Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class Method in Report
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01309629
Message ID:
01309663
Views:
13
>>>Hi,
>>>
>>>Is it possible to use a class method as the expression for a report field?
>>>I guess I'm really just asking how/whether one can instantiate a class object in the report?
>>>TIA,
>>>Viv
>>
>>Viv,
>>
>>no, you can not use a method of a class.
>>You might use the method of an object instead.
>
>Sorry, obviously that's what I meant - just being sloppy.
>
>>the object must be accessible via
>>-public var (a public var must hold a reference to your object)
>>-something else the rport will see must hold an reference.
>>
>>I use something like
>>
>>_screen.addproperty('goMyHandler',GetInstanzeMyHandler)
>>*the report will work with
>>_screen.goMyHandler.SomeMethod()
>>
>That should work for me,
>Thanks,
>Viv

You don't have to add it to the screen.

Local myObject
myObject = newobject()

in the report myObject.myMethod() would work.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform