Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

MACRO_RPT( cFname, cAlias, cTarget[, cOutfile[, aPrnstyl ]] )

Purpose

Execute a report as a macro expansion of elements read from text files
cFname.HDR and cFname.BDY.

Arguments

     cFname -- name of .HDR and .BDY files

     cAlias --  table to select during report execution

     cTarget -- P(rinter), F(ile) or S(creen)

     cOutfile -- if passed, name of output file if selected

     aPrnstyl -- if passed, array of names of printer codes

Setup

Create _fname.HDR and _fname.BDY as text files specifying the
report. The .HDR file specifies its number of lines in the first line, the
width and page length in the second line, and macro-expandable specs for
the header in succeeding lines. The .BDY file specifies its number of lines
in its first line, and macro-expandable specs for one item of the report
corresponding to a single record, in succeeeding lines.

Example

     * CONTENTS OF CUST.HDR FILE:

     2
     80, 56
     "Customer List, " + TEXTDATE()

     * CONTENTS OF CUST.BDY FILE:
     2
     TRIM( Last_name ) + ", " + First_name
     B_prov + B_country

     * Code:
     EXTERNAL TEXTDATE          && Called in CUST.HDR
     MACRO_RPT( "CUST", "CUSTOMER", SET_TARGET(), ;
                .F., { "Reset", "Pica" } )

Returns

The result of LINEOUT().

Side Effects

Writes report to screen, file or printer.

Artful Calls

ABREAK, BODYMACRO, HDRMACRO, LIST_EM, READ_ARRAY

Source File

AA_LISTM.PRG

See Also: GET_TARGET() LINEOUT() LIST_EM() READ_ARRAY()

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