Skip to content

QUERY$

Purpose
Provides controls over the queries to be run, output destination and other operational parameters for Query-IV.
Used By
CONNECT QUERY from a method.

Contents

QUERY$[0] Return status:
“Q” On input indicates a query is being selected.
“.” On output indicates normal termination.
QUERY$[1] Query library name. A two-character library name.
QUERY$[2] From Query.
QUERY$[3] To Query.
QUERY$[4] Mask for query range.
QUERY$[5] Sort number.
QUERY$[6] Query device:
“Y” Select printer prompt.
null Ask hard copy question.
“N” Terminal output only.
“LP” Printer name.
“Pn” Printer name.
“OP” Use operator default printer.
“SP” Use last printer opened by operator.
“CH:nn” Use channel nn for output.
“/file-name” Create or overwrite output to this file name. Garbage may exist after output text.
“CR” Query is connected from another query.
[1] Query name (LLQQQQ).
[2] X$ not returned.
[3] H$ returned to calling query.
[4] T$ returned to calling query.
QUERY$[7] Type of output:
“P” PRINT
space PRINT
“W” WRITE
“R” WRITERECORD
“N” No output
QUERY$[8] Query mode:
“D” Print detail lines only. Header and footer lines will not be printed.
“ -” Normal printing will be done.
QUERY$[9] Method to execute prior to printing each query detail line.
QUERY$[10] Window name for a user-supplied window.

When CONNECT QUERY is called from a menu or data name the parameters are supplied in a comma-separated string. The details are identical to those for REPORT$, which follows this page. Refer to REPORT$ for an explanation.

From the OPENworkshop Reference, version 8.9.1. Open this page in the PDF