Skip to content

Procedures and BYREF

CALL runs a procedure

  • A procedure is a named block. It does a job and returns no value.
  • Define it with PROCEDURE … ENDPROCEDURE, and run it with CALL.
  • Parentheses are written even when there are no parameters.

CALL ShowRule() jumps to the procedure, runs OUTPUT "----------" and comes back; two calls print the line twice around Club results

Handout

Log in or create account

IGCSE, A-Level & AP