7. Embedded QUEL for Pascal : Pascal Variables and Data Types : Compilation Units and the Scope of Objects : The Procedure
 
Share this page                  
The Procedure
The syntax for an EQUEL/Pascal procedure is:
procedure procedure_name [(formal_parameters)];
    [declarations]
begin
    [statements]
end;
Syntax Notes:
1. The procedure_name is not processed by EQUEL.
2. Formal parameters and variables declared in a procedure are visible to the procedure and to any nested blocks.
3. For a description of formal parameters and their syntax, see Formal Parameter Declarations.
##   procedure AppendRow( name : varying[ub] of Char;
##   age : Integer;
##   salary : Real );
##   begin
##    APPEND TO emp (#name = name, #age = age, 
##      salary = salary)
##   end;