Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using variables in a report
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00446138
Message ID:
00446677
Views:
15
>>>

Hi Brett,

I am displaying a record to printed out from a pageframe form,
the trouble I am having is in the data environment between the
form and the report.

The form is setup to print the current record displayed, however,
when I try to do anything involving the database that contains
the record for the header info. on the report, I encounter
errors and crash the system.

I need to print the last record in the 2nd database to provide
the info for the header info., while at the same time printing
the record displayed on the pageframe form.

Thanks,

Becky

>>>* Declare public report variables needed
>>>PUBLIC pcReportTitle
>>>
>>>pcReportTitle = 'What ever I want from where ever I need it'
>>>
>>>* Run the report that uses the pcReportTitle variable
>>>REPORT FORM....
>>>
>>>* Important
>>>* Release the PUBLIC variable
>>>RELEASE pcReportTitle
>>>
>>>Hope this helps..
>>
>>Hi Bret,
>>
>>You may declare your variable as local and it still be visible in your report. If you hesitate, declare them as private. No need for PUBLIC, really :)
>>
>>See also Cetin's reply.
>
>Correct, but test test test....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform