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"
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"
Any Ideas????