Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referencing form's properties inside a report
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00230268
Message ID:
00230917
Vues:
23
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform