qp.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
FUNCTION Declaration
  Keywords Contents Index                                   Back
 
  FUNCTION <identifier>( <formal parameter list> ) : <type>;
 
      <block>
 
  Description
 
    A FUNCTION declaration is similar to a procedure declaration. The
    declaration associates an identifier with a block or with a FORWARD,
    EXTERNAL, or INLINE declaration. Unlike a procedure, a function
    returns a value. The value returned may be of type Boolean,
    character, integer, pointer, real, or string.
 
    A function call can be used wherever a constant is used. The syntax
    of a function call is
 
       <identifier> [ ( <actual parameter list> ) ]
 
  See also:  Pascal Statement Hierarchy, PROCEDURE, Simple statement