Operator . (Member access)
Returns a reference to a member from a reference to an object
Syntax:
Usage:
result = lhs . rhs
Parameters:
lhs
An object.
T
A user-defined type.
rhs
The name of a member to access.
U
The 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.
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.
Examples:
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:
Back to Type or Class Operators
Back to Operators