I have 15 field with similar names. These just differ by the number at the end.
Currently I am using case statements to populate these fields. Is it possible to use a variable name as a field. If so I could use something like m.type_ + nvar = ...
Is there anything like that I can do?
for nvar = 1 to arraySize
do case
case nvar = 1
m.type_1 = val(tmpDenom(nvar,1))
case nvar = 2
m.type_2 = val(tmpDenom(nvar,1))
case nvar = 3
.......
Currently I am using case statements to populate these fields. Is it possible to use a variable name as a field. If so I could use something like m.type_ + nvar = ...
Is there anything like that I can do?
for nvar = 1 to arraySize
do case
case nvar = 1
m.type_1 = val(tmpDenom(nvar,1))
case nvar = 2
m.type_2 = val(tmpDenom(nvar,1))
case nvar = 3
.......