Click or drag to resize

ReportQueue.SetReportQuery Method

X#
Set the query to be used for the report.

Namespace:  VO
Assembly:  VOReportClasses (in VOReportClasses.dll) Version: 2.24 GA
Syntax
 VIRTUAL METHOD SetReportQuery(
	sQueryName
) AS USUAL CLIPPER
Request Example View Source

Parameters

sQueryName (Optional)
Type: Usual
Name of the query to use for the report.

Return Value

Type: Usual
Remarks
For reports that contain multiple queries, this method can be used to select which query is used when running a report. To view what queries are available, go into the Report Editor and select the Query, Set Report Query menu item. If that menu item is disabled, then only the default query (QUERY1) is defined. Otherwise a Set Report Query dialog box will appear and the available queries will be listed. The report query should be set before calling Print() or Preview().
Examples
X#
1oRQ:SetReportQuery("QUERY2")    //Set the report query to QUERY2
See Also