Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do I See Variables & Fields at Design Time?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00124639
Message ID:
00124757
Vues:
23
>>In a frmRepByEmp, I have set up for the user to make an employee selection from cboEmpNo and a date range selection from txtBegDate and txtEndDate. The ControlSources for txtBegDate and txtEndDate are memory variables mBegDate & mEndDate, respectively.
>>
>>When in the Report Designer, I notice that the Data Environment is not the same as it is in the Form I have set up to call this report from. Consequently, field name listings are not availble. Also, mBegDate & mEndDate are not available.
>>
>>Is there something I can do about this at design time in the Report Designer, or do I just go ahead and reference fields and variables that the Report Designer doesn't know about at design time? TIA, CH.
>
>[...]
>
>Another option is to declare mBeDate and mEndDate public (or applicaton object properties) and build your cursor in the INIT of the report (to see the methods/properties open the DE, right-click and choose Properties).

Another workaround for displaying form properties in a report is:

PUBLIC MYFORM
MYFORM=THISFORM
*
* in the report, include MYFORM.mBeDATE, MYFORM.mEndDate, and so on
*
MYFORM=.NULL.
RELEASE MYFORM
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform