LOTUSSCRIPT LANGUAGE


Sub Delete
Example

A user-defined sub that LotusScript executes when you delete an object belonging to the class for which the Delete sub is defined.

Syntax

Sub Delete

[ statements ]

End Sub

Usage

In the definition for a user-defined class, you can define a destructor named Delete. This sub is automatically executed whenever you delete an object belonging to the class for which you defined the Delete sub.

The Delete sub is always Public: you can't declare it as Private.

The Delete sub can’t take any arguments.

The Delete sub can’t be called directly; it's invoked only when the object is deleted. The name Delete can only be used as the name of a destructor; for example, it can't be used to name any other procedure or a variable.

Example
See Also