WITH
WITH [ Variable = ] Expression
...
END WITH
Between the WITH and the
END WITH instruction, an expression beginning with a point is referring to
Expression, that must be an object reference.
You can nest WITH ...
END WITH structures.
Example
With hButton
.Text = "Cancel"
End With
' is equivalent to
hButton.Text = "Cancel"
Array accessors shortcut
Since 3.5
The following syntax can be used as array accessors shortcut:
With Array
.[0] = "First slot"
.[1] = "Second slot"
End With
With Collection
!key = "Value"
End With
See also