Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Method in Report
Message
De
10/04/2008 10:07:00
 
 
À
10/04/2008 09:53:46
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:
01309683
Vues:
10
>>>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
>>
>>You can call any object.method from the report form, as long as report 'sees' the object, i.e. you should declare the object either as Public, if it is something generic and you will call it from many places, or as Local in the same method from where you call your report form. Within the called method you can do any commands.
>
>Thanks,
>Since I have an existing instance of the object in question as a form property I guess that I can just create a local reference to this in the method that calls the report....
>Regards,
>Viv

Yes, it would be safer:
Local oForm
oForm=thisform
Report Form .... && use oForm inside
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform