LOTUSSCRIPT 言語
構文は次のとおりです。
With objectRef
With ステートメント自体は、最大 16 レベルまでネストできます
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)
With ステートメントの外で、全体の参照を指定する必要があります。次に例を示します。
Employee.empName$ = .newName$
関連項目