Procedures

A procedure is a block of ViviFire statements between a declaration clause (Function, Method, Property, Sub) and an end clause (End). Almost all executable statements must be in a procedure. A module (Program) can contain executable statements also. But we recommend a procedure for a program that is larger than an example.

Calling a procedure

You execute a procedure from a different area of the code. This is known as a procedure call. When the procedure completes, it moves control back to the code that executed it, also known as the calling code. The calling code is a statement (or an expression in a statement) that refers to the procedure by its name and moves control to it.

Returning from a procedure

TODO2

Parameters and arguments

TODO2

Types of procedures

Procedures and structured code

TODO2

See also