[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
dbReport (cFormatFile, bGetRecord, aDataDictionary, cOutputFile) -> lError
Function to generate a report with dbReport
Given:
cFormatFile Filename for Format file to be used by dbReport
bGetRecord Code block that retrieves record to be printed.
This function must return an array of the field
values to be used by dbReport. If there are no
more records to be printed this function must return
NIL. The value in an element of the array returned
corresponds to the field in the aDataDictionary
array.
aDataDictionary Array containing the names of the fields in the
record. These names need not match the actual
field names of the .dbf file. However, the field
names defined in the format file must match the the
field names in the array.
cOutputFile Filename to output the report to. If cOutput is
defined the report will be output to a text file by
that name, otherwise the report will be output to the
printer.
Returns:
lError Returns logical indicating if an error has occured
In the case of an error(s) a error file
("dbReport.err") will contain as list of the error(s)
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson