LOTUSSCRIPT LANGUAGE


Sub New
Example

A user-defined sub that LotusScript executes when you create an object of the class for which the New sub is defined.

Syntax

Sub New [ ( [ argList ] ) ] [ , baseClass ( [ baseArgList ] ) ]

[ statements ]

End Sub

Elements

argList


baseClass ( [ baseArgList ] )
Usage

In the definition for a user-defined class, you can include a definition for the constructor sub, named New. If the definition exists, LotusScript calls this sub whenever it creates an object from that class. LotusScript calls the sub immediately after creating the object.

Example
See Also