Program Entry Point

All ViviFire programs must contain a minimum of one module with the file extension .vfire. If there are two or more such modules, one must start with Program and a name. But if there is only one such module, Program is optional. This module is where your program starts to run.

If you supply Program, the name of the program can be the same as one procedure in the module. 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 (the same as a module without Program).

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