With Statement
Syntax:
With objexpr
statements
End With
Group:Object
Description:
Method and property
references may be abbreviated inside a With block. Use .method
or .property
to access the object specified by the With objexpr.
Example:
Sub
Main
Dim
App As Object
Set
App = CreateObject("WinWrap.CppDemoApplication")
With App
.Move 20,30 ' move icon to 20,30
End
With
EndSub