Output to a form.

 Output source [/Qualifiers ...]
 sourceAn expression indicating the source for the output.
 OUTPUT writes to a form using the indicated source. The OUTPUT qualifiers enable you to specify exactly how, when, and when the source data will be written to the form. Some of the qualifiers are specifically for use when writing to a report form.

 /Accumulate=variableAccumulate the source value into a variable. This is useful if the accumulated value is tobe used for crossfooting in another column (running totals) or the totals for each level break are required for further processing. The value in the variable is reset after each level break. This qualifier is normally used in a REPORT form, but may be used to produce running totals elsewhere.
 /Break=[=expr]for REPORT forms only. Output the data at the level break (lowest or minimum) corresponding to the given numeric expression. If the level break is lower than the specified break, the output will be all spaces. If the break level is not specified, the output will begin at the lowest (innermost or most frequently occurring) level break.
This is the same as using /IF and testing the break level against
%REPORT_BREAK, except that if the condition is false, the output is spaced padded. This allows columns to the right to be floating (not explicitly positioned).
In FOOTING and HEADING (not DETAIL) areas, the break level means output ONLY at the specified level break.
 /Col=exprOutput at a particular column. The output buffer will either be padded or wrapped to position at the specified column. This method of positioning allws the output to float between lines. Blank lines are compressed. If the column expression is zero, output is positioned next to the previous output, ignoring default column spacing.
In a REPORT form, the column expression can be %CENTER or %RIGHT for centering and right justification.
 /Get [=(KEY=DB(FIELD) ] &
[, prefix=expr ] &
[, SUFFIX=expr ] )]
The /GET qualifier checks for the presence of the source in a keyed database. It makes the retrieved record current. Use this qualifier to do record translations (for a TABLE_EDIT for instance).
 /KEY=DB(FIELD)the key on which to perform the lookup.
 /Prefix=exprAppend the source to the prefix before doing the lookup. If not specified, the prefix of the output or /USING field is used.
 /Suffix=exprThis is the same as the prefix except it is appended to the output source. If not specified, the suffix of the output or /USING field is used.
 /Gosub=SUBRExecute a subroutine prior to doing the output. An error return status from the routine causes the output to be skipped. The specified subroutine is executed when a SHOW statement is performed.
 /Heading=For REPORT only. Override the heading from the definition file with the specified expression. For a two-line heading, include a comma (,) in the expression.
/Heading="Customer, Balance"
will show as:
 /If=exprConditionally execute the output statement. This is the same as saying 'If expr then Output ...', except that the condition is evaluated when a SHOW statement is executed.
If the output is being used in a REPORT form, any outputs not in fixed positions to the right of this output will move to the starting position of this output when the condition is false.
 /Len=exprThe number of characters to output. If the data to output is shorter, it is space padded.
 /Mask=exprThe output mask to use. The expresion is usually a quoted string.
 /NodetailDon't print detail information for this output column. This qualifier is useful when printing a total when the detail information is to be suppressed.
 /Parameters=(par1 [par2...])A list of up to 12 parameters that are to be passed to any of the routines executed by the OUTPUT (i.e. the /GOSUB subroutine).
/Parameters=a, c + 3, "PREFIX"
 /Pos=row_expr, col_exprThe row and column on the form where the output is to be placed. These must be numeric expressions. If either one is not a constant, the output cannot be shown correctly by the forms DESIGN editor.
In a REPORT form, the column expression can be %CENTER or %RIGHT for centering and right justification.
 /Target=variablePlace the source contents into a variable. This is used for referencing the output data in another output without re-specifying the output expression, or when the result is dependent on a condition.
 /Total [=expr]Total the output source (or optional expression) and print the total at a level break. when used without an expression, the Output statement's /TOTAL qualifier totals the output source and prints the total at a level break. If you specify an optional expression, it is executed only at the level break, and the result is written instead of the column total. This allows you to use the /TOTAL qualifier in conjunction with the /ACCUMULATE qualifier to produce an average.
Output DB(BALANCE) /Accumulate=bal &
/Total=(bal / %COUNT)

You can also use the /TOTAL qualifier with the /ACCUMULATE qualifier to produce a percentage.
Output DB(OWE) /Accumulate=owe / Total
Output DB(PAID) /Accumulate=paid &
/Total=(paid / owe * 100)
Use the specified field attributes for outputting the source.
 /Vattr=exprComma-separated video attributes of the text as it is written to the form.

Available video attributes are RE[verse], BO[ld], BL[ink] and UN[derline].