Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Method in Report
Message
 
 
À
10/04/2008 08:49:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01309629
Message ID:
01309663
Vues:
14
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform