03-04-2005, 11:05 AM
Hello all,
I'm not sure I'm understand what is union in an UDT, how do you represent it in a statement? For E.g.:
no.D
I'm not sure I'm understand what is union in an UDT, how do you represent it in a statement? For E.g.:
Code:
Type UserType
A As Long
B As Long
Union UserUnion
C As Byte
D As Short
E As Byte
End Union
F As Double
End Type
DIM NewVar as UserType
NewVar.C = 10 ' Is this correct?
NewVar.UserUnion.C = 10 ' Or should be this way?
no.D