Some of the parameters in this call for example:
ConnectToDatabase(oCustomPropReader.ConnectionType, .ConnectString, _
oCustomPropReader.SystemMdb, .UserName, .Password)
Why do UsernName, Password, and ConnectString have dots before them? Thanks!
These are properties (or methods) of an object declared as With
(See the docs for more info.)
Consider the following:
Dim obj As New Object
obj.Username = "foo"
obj.Password = "bar"
this is the same as the following:
Dim obj As New Object
With obj
.Username = "foo"
.Password = "bar"
End With
They can reduce the amount of characters you have to type if you are reading or writing a lot of properties within the same object.
It can also improve readability if you have a long object name.
Note that that code you are looking at may have the With
and End With
off the currently viewable page so it is not obvious what these properties refer to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With