Skip to Content
0
Mar 31, 2011 at 04:05 PM

Refer to field of internal structure dynamically(?)

24 Views

Hi Experts,

I tried to find answer for my dummy question but till now I haven't found anything...

1) istruc:

(field names of istruc)

field1; field2; field3

(values)

A; B; C

2) variable1 can have following values: 'field1', 'field2', field3'.

How can I refer to the value in istruc-field1,2,3 via variable1?

E.g. if variable1 = 'field2'

variable2 = istruc-(value in variable1) = "B" /variable2 = istruc-field2/

Maybe my question is how can I refer to the field name of intenal structure dynamically? Is it possible somehow?

Thanks,

Csaba

Edited by: Csaba Szommer on Mar 31, 2011 6:05 PM