"With" blocks in Office COM automation?

Rob Fitzpatrick

ProgressTalk.com Sponsor
Question for those who use ABL COM automation to control Office apps: is it possible to use with/end with blocks in ABL?

For example, in VBA you can do something like:

Code:
With fully.qualified.path.to.my.object
   .property1 = value1
   .property2 = value2
   .object2.property3 = value3
   <etc>
End With

It's a nice way of cutting down the verbosity of multiple assignment statements, without losing comprehensibility. Can "with" blocks be created in ABL's COM functionality, or is it basically limited to accessing object properties, methods, and events?
 
Top