Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending the value of a property to a report
Message
De
31/07/2002 10:18:11
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00684427
Message ID:
00684450
Vues:
26
>Hi Jaime
You are correct, and thank you. I queried the value of a property from within the report writer, in the PRINT WHEN expression, and it worked fine. Thank you.

Regards,
Carmen


Carmen
>You don't have to declare the variables as public to do that. The variables in your form code are in the scope of your report. For instance, the following will work perfectly:
>
>local prtFromDate, prtToDate, prtSomeVar
>with ThisForm
>   prtFromDate = .FromDate.Value
>   prtToDate = .ToDate.Value
>   prtSomeVar = .someField.Value
>endwith
>report form Myreport noconsole preview
>
>In this example, you can place wherever you want in your report the vars prtFromDate, prtToDate and prtSomeVar.
>
>Cheers,
>Jaime
>
>>
>Hello All
>> Is it possible to send from a form, the value of a property to a report as a parameter? Would the alternative be to declare a public variable and assign the value of the property to the public variable so that the report writer will be aware of it?
>>
>>Thanks in advance
>>Carmen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform