Hello everyone. I'm using a For loop and am trying to reference 8 fields in a neat manner. The fields are:
LCDT01
LCDT02
...
LCDT08
Here is part of the loop:
C For i = 1 to 8
C Move i @LCDField
C MoveL 'LCDT0 ' @LCDField
@LCDField is a 6 character field that is holding the file field name. I want to be able to reference each field inside the loop by using @LCDField so that I don't have to manually check each field. However, I'm not sure if this is possible. Can anyone help with this?
LCDT01
LCDT02
...
LCDT08
Here is part of the loop:
C For i = 1 to 8
C Move i @LCDField
C MoveL 'LCDT0 ' @LCDField
@LCDField is a 6 character field that is holding the file field name. I want to be able to reference each field inside the loop by using @LCDField so that I don't have to manually check each field. However, I'm not sure if this is possible. Can anyone help with this?