What does putting an exclamation point (!
) in front of an object reference variable do in Visual Basic 6.0?
For example, I see the following in code:
!RelativePath.Value = mstrRelativePath
What does the !
mean?
What does putting an exclamation point (!
) in front of an object reference variable do in Visual Basic 6.0?
For example, I see the following in code:
!RelativePath.Value = mstrRelativePath
What does the !
mean?
It is almost certainly a statement inside a With block:
With blah
!RelativePath.Value = mstrRelativePath
End With
which is syntax sugar for
blah("RelativePath").Value = mstrRelativePath
which is syntax sugar for
blah.DefaultProperty("RelativePath").Value = mstrRelativePath
where "DefaultProperty" is a property with dispid zero that's indexed by a string.