Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - report form display a report http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 report form         Display a report
------------------------------------------------------------------------------
 Syntax
   [!sAlias] report form sReport [scope] [plain] [noeject] [summary] ;
   [to print] [to file cFile] [heading cHeading] [while lExp] [for lExp]

 Arguments
   sAlias is the database to operate on.
   sReport is a report structure declared in a reportdef block.
   scope specifies a portion of the source database.
   cFile is the name of a file to send the report to.
   cHeading is a header string.
   lExp is a logical expression.

 Description
   The report command displays the report specified by sReport
   through the same I/O system as the ? command. The default scope for
   report is all.

   The plain clause suppresses the output of the heading declared in
   sReport.

   The heading clause overrides the heading declared in sReport and
   substitutes cHeading for the heading.

   If the to print clause has been specified, then the noeject clause
   suppresses the initial printing of the form feed character (ASCII 12).

   The summary clause overrides the summary flag in the reportdef, forcing a
   summary report.

   The to file clause forces the report to output through the set alternate
   system. Alternate files already selected are overridden by to file.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_reportform
   open sTest
   report form sRepAcc to file "rep.txt" heading "--Detailed Report--"
   close all                // clean up
   erase "rep.txt"
   endproc

   proc main
   Test_reportform()
   endproc

See Also: Database command scope table label form reportdef

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson