Function DbList() Foundation
Displays records from a work area.
DbList( [<aCodeblocks>], ; [<lNoRecno>], ; [<lAll>], ; [<bForCondition>], ; [<bWhileCondition>], ; [<nCount>], ; [<xRecordID>], ; [<lRest>], ; [<lPrint>], ; [<cFilename>] ) --> NIL
The return value of DbList() is always NIL.
The function DbList() provides a simple way to display a table of data from a work area. The data display is specified to the function in the form of an array containing code blocks in each element. The code blocks are evaluated for each record and the return values are displayed on the screen. Output to a printer or file can also be specified. In order to suppress the screen display, screen output must be turned off using SET CONSOLE OFF before the call to DbList().
The number of records for which the code blocks are evaluated can be limited by additional parameters. If DbList() is called without parameters, the function displays all fields of all records in the current work area on the screen. An asterisk * is displayed at the beginning of the line for each record marked as deleted, as long as SET DELETED is turned OFF.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.