LOTUSSCRIPT LANGUAGE


Class statement
Example

Defines a class with its member variables and procedures.

Syntax

[ Public | Private ] Class className [ As baseClass ]

classBody

End Class

Elements

Public | Private


className
baseClass
classBody
Usage

The Public keyword cannot be used in a product object script or %Include file in a product object script, except to declare class members. You must put such Public declarations in (Globals).

Rules for defining classes:


Rules for declaring member variables:
Rules for declaring member procedures:
Rules for referring to class members:
Rules for working with objects (class instances):
A class definition can include a definition for the constructor sub, named New. If the definition exists, LotusScript calls this sub each time it creates an object of that class.

A class definition can include a definition for the destructor sub, named Delete. If the definition exists, LotusScript calls this sub whenever it deletes an object of that class.

Example
See Also