PrintRecordArrayTo (open)

Show the records of a record array

Syntax

// Core function, no LOADLIB necessary

MACRO PrintRecordArrayTo(INTEGER outputdevice, RECORD ARRAY recarr, STRING format)

Parameters

INTEGER outputdevice

Output to send the record array to (0 = default)

RECORD ARRAY recarr

Record array to show

STRING format

Output form (currently "boxed", "html", "csv", "tree", "htmltree" )

Description

PrintRecordArrayTo prints all cells of all records in a record array. The printout can be formatted in either boxed (ASCII) or HTML format.

Examples

// Show the cells of all records in a record array
RECORD ARRAY ra := SELECT * FROM files WHERE parent = 1;
PrintRecordArrayTo(0, ra,"boxed");