ListPrint Function

Action

Prints all elements of a list.

Include file

List.bdh

Syntax

ListPrint(
   theList: list) : boolean;
Parameter Description
theList List of number, boolean, float or string.

Return value

  • true if successful
  • false otherwise

Example

transaction TAListPrint
var
  lNumber: list of number init 1, 2, 3;
  lString: list of string init "one", "two", "three";
  b: boolean;
begin
  b := ListPrint(lNumber);
  Print(string(b));
  b := ListPrint(lString);
  Print(string(b));
end TAListPrint;

Output

element 1: 1
element 2: 2
element 3: 3
TRUE
element 1: one
element 2: two
element 3: three
TRUE