I am writing some code where I want to reference a user defined type via a fieldname which is held in a variable.
Does anyone know how to do this i.e.
Type TestType
desc as string
code as string
End Type
Dim FldName as String
Dim AUDT as TestType
FldName = "desc"
[AUDT.FldName] = "Description"
instead of
AUDT.desc = "Description"
I am using an array to hold a list of field names which I want to use to reference data held in my user defined type.
Any Ideas????
Does anyone know how to do this i.e.
Type TestType
desc as string
code as string
End Type
Dim FldName as String
Dim AUDT as TestType
FldName = "desc"
[AUDT.FldName] = "Description"
instead of
AUDT.desc = "Description"
I am using an array to hold a list of field names which I want to use to reference data held in my user defined type.
Any Ideas????