Procedures

Procedures are named sections of a script that you can invoke by name. A procedure in LotusScript® takes the form of a function, a sub, or a property. Procedures are primarily ways to organize your code to make it easier to understand and maintain.

A function is a named procedure that returns a single value. A sub is a named procedure that performs one or more operations without returning a value to its caller. A property is a language element whose main purpose is to allow the indirect manipulation of variables that you don't want to expose to the application as a whole.