Optional Parameters

Some methods have optional parameters. The LotusScript® keyword "Nothing" is used for output parameters that the user is not interested in receiving. If one or more optional parameters are at the end of a call, they may simply be ignored as in the case of a datetime. For example, a datetime with only the date portion provided is created using the following statement.

Dim Calendar as New LCDatetime (1998, 8, 7)
     'In this case hour, minute, second, and so on 
     'have been omitted at the end

When optional parameters that occur in the middle are omitted, the commas must remain.

Call session.GetStatus (ErrorText, , DBError)