>>>I wish to run the following line of code
>>>
>>>REPORT FORM REPORTNAME TO PRINTER
>>>
>>>where REPORTNAME is a variable containing the name of the report. Is there a function which will locate the contents of reportname
>>
>>REPORT FORM &REPORTNAME. TO PRINTER
>
>Name substitution will work here, and is considered better code:
>
>REPORT FORM (lcReportName) TO PRINTER
Macros are universal in VFP, so I consider them as better code.
Edward Pikman
Independent Consultant