Program Entry Point

All ViviFire programs must contain one module that starts with Program and a name. This module is where your program starts to run.

The name of the program can be the same as one procedure. When you write = before the name, that procedure becomes where the program starts to run. But, if = is not given, control starts at the top of the module.

A procedure lets you easily get arguments from the command line, and/or return an error code to the operating system. But if these are not necessary in your program, you can select not to use a procedure. There are alternatives you can use. For example, Exit Program can return an error code.

Declaration of the procedure

There are four different mixtures of parameters and return types. It can have one parameter or none, and it can return a value or not.

See also