CDDLHELP.HLB  —  QUERY_HEADER
  The QUERY_HEADER field attribute clause provides  a  label  that  VAX
  DATATRIEVE  uses  as  a column heading for the field in printouts and
  reports.

1  –  Parameter

  dtrqh_quoted_string

       The VAX DATATRIEVE query header.

2  –  Syntax Rules

   o  The quoted string must be a valid VAX  DATATRIEVE  query  header.
      The  CDDL  compiler  does not check the quoted string for correct
      syntax.

   o  Quoted strings must be separated from each other by a space, tab,
      or comma.

3  –  Usage Notes

   o  Only VAX DATATRIEVE  supports  the  QUERY_HEADER  clause.   Other
      language processors ignore it.

   o  If you specify more than one quoted string, VAX DATATRIEVE stacks
      them.  Use multiple quoted strings to specify long query headers.

   o  You can use 8-bit characters in CDDL quoted strings.

4  –  Example

  In the following example, the QUERY_HEADER clause specifies that  VAX
  DATATRIEVE  use  TOTAL  PRICE  as  the  column  header  for the field
  TOTAL_PRICE.

  TOTAL_PRICE             DATATYPE IS VIRTUAL FIELD
                          COMPUTED BY DTR AS
                              "UNIT_PRICE * QUANTITY"
                          QUERY_HEADER FOR DTR IS "TOTAL PRICE".
Close Help