|
-
May 14th, 2004, 08:15 AM
#1
Thread Starter
Registered User
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??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|