Operator . (Member Access)
Returns a reference to a member from a reference to an object
result = lhs . rhs
lhs
Returns a reference to the member specified by rhs.
Operator . (Member access) returns a reference to a member of an object.
Operator . (Member access) can also be used to access members of an implicit object inside a With..End With block.
This operator cannot be overloaded.
Syntax
Usage
result = lhs . rhs
Parameters
lhs
An object.
TA user-defined type.
rhsThe name of a member to access.
UThe type that rhs refers to.
Return Value
Returns a reference to the member specified by rhs.
Description
Operator . (Member access) returns a reference to a member of an object.
Operator . (Member access) can also be used to access members of an implicit object inside a With..End With block.
This operator cannot be overloaded.
Example
Type T
As Integer a, b
End Type
Dim x As T
'' Access the member 'a' of x.
x.a = 10
'' Access the member 'b' of x.
With x
.b = 20
End With
As Integer a, b
End Type
Dim x As T
'' Access the member 'a' of x.
x.a = 10
'' Access the member 'b' of x.
With x
.b = 20
End With
Dialect Differences
- None
Differences from QB
- None
See also