[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Parameter in Declare-Report
> I have one simple (?) question:
> Is it possible to use a parameter, instead of an "ordinary name", in =20
> Declare-Report ?
> Here's what I want to do:
>
> begin-setup
> Declare-Report $reportname
> ....
> End-Declare
> end-setup
>
> begin-report
> input $reportname
> use-report $reportname
> end-report
>
> Is this possible, or is there another way to call a report from another?
> I'm using ver 3.0.12.1 for Sybase.
>
> Happy holidays
Ulrika,
I think the easiest way to do this is to:
declare-report fred
....
declare-report barney
....
input $report_name
lowercase $report_name
evaluate $report_name
when = 'fred'
use-report fred
break
when = 'barney'
use-report barney
break
end-evaluate
Ray
----------------------------------------------------------------------
Ray Ontko | Ray Ontko & Co | "Ask me about Forte Software"
rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/