Creating an additional script in LotusScript

A number of scripts, such as Initialize, Terminate, and Click, are automatically defined as events for the current Domino object. You select them from the Info List. You can create additional scripts and other block structures as shown in the following table. When a new script is added, it appears on the Objects tab.

What you type

What LotusScript does

Class name

Adds an empty Class/End Class block called name to the end of the (Declarations) script for the current object. Positions the insertion point in the Class statement.

Deftype letter_range

Adds a Deftype statement to the end of the (Options) script for the current object. Positions the insertion point at the Deftype statement.

For information about creating a valid letter_range, see Deftype statements.

Dim name

If the Dim statement is typed outside of a subprogram, adds a Dim statement for name to the end of the (Declarations) script for the current object. Positions the insertion point at the Dim statement.

Function name

Creates an empty Function/End Function block called name for the current object and adds it to the list of events. Positions the insertion point in the function.

Option keyword

Adds an Option statement to the end of the (Options) script for the current object. Positions the insertion point at the Option statement.

For a list of valid keywords, see Option keyword.

Property Get name

Creates an empty Property Get/End Property block called name for the current object and adds an item called name Get to the list of events. Positions the insertion point in the subprogram.

Property Set name

Creates an empty Property Set/End Property block called name for the current object and adds an item called name Set to the list of events. Positions the insertion point in the subprogram.

Sub name

Creates an empty Sub/End Sub block called name for the current object and adds it to the list of events. Positions the insertion point in the subroutine.

Type name

Creates an empty Type/End Type block called name for the current object and adds it to the end of the (Declarations) script for the object. Positions the insertion point at the beginning of the Type block.