referencing members of UDTs
Hi,
I'm having a headache trying to assign a variable that will reference a member of a user defined type, i.e
i've designed the type thus:
public type Details
A as variant
B as variant
......(so on and so forth)
end type
later in the programme I want to reference particular members of an instance of this type depending on a case statement; my idea is to set a variable that will be set for each Case e.g
case 1
variable = "A"
case 2
variable = "B"
etc
i then try to reference the member like:
if Details.variable = 0 then
....
it doesn't work and throws the error: 'Method or data member not found.' Is there any way you can reference a data member in this manner??