LOTUSSCRIPT LANGUAGE
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
[ ByVal ] paramName [ ( ) | List ] [ As dataType ]
paramName() is an array variable; List identifies paramName as a list variable; otherwise, paramName can be a variable of any of the other data types that LotusScript supports.
As dataType specifies the variable data type. You can omit this clause and use a data type suffix character to declare the variable as one of the scalar data types. If you omit this clause, and paramName doesn't end in a data type suffix character (and isn't covered by an existing Deftype statement), its data type is Variant.
The baseArgList is a comma-separated list of arguments for the sub New of the base class. Note that these are actual arguments, not parameter declarations. This syntax enables a call of the New sub for the derived class to furnish actual arguments to the call of the New sub for the base class.
Include this syntax in the New sub only if all of these conditions are true:
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