LOTUSSCRIPT LANGUAGE
The syntax is:
With objectRef
The With statement itself may be nested up to 16 levels.
Class Employee Public empName As String Public newName As String ' Sub GetName prompts for and accepts input to newName. Sub GetName newName$ = InputBox$("Enter name:" , "New Name" ) End Sub End Class Dim startEmp As New Employee ' Sub SetEmp puts information into the new employee object. Sub SetEmp (E As Employee) With E Call .GetName ' Prompts for input to startEmp.newName$. .empName$ = .newName$ End With End Sub Call SetEmp(startEmp)
Outside the With statement, you need to specify the entire reference. For example:
Employee.empName$ = .newName$
See Also