How to specifiy array index and loop reference

This may be a basic one, but I didn’t come across this yet. In the example below:

RD. READ …
FD. FIND …
DISPLAY #array(1) from READ

How should I specify array index and loop label RD. with the field?

I am a little confused by your question - perhaps because minimum info was given.

You can always prefix a field with the view name to remove ambiguity to the coder, especially if the field name occurs in multiple active loops.

Example:

RD. READ MYVIEW BY KEY1
FD. FIND YOURVIEW WITH KEY2 = #XYZ
MOVE MYVIEW.ARRAY(1) TO #BLAH
MOVE YOURVIEW.ARRAY(1) TO #YADDA
END-FIND
END-READ

Does this help?

You can also include both reference and index:
MOVE ARRAY(RD./1) TO #BLAH

Be aware that in structured mode if you use
RD. READ MYVIEW BY KEY1
FD. FIND MYVIEW WITH KEY2 = #XYZ
the reference SOMEFIELD(RD.) (including ARRAY(RD./1)) inside the FD. loop will refer to the data in FD since the FD FIND overlays the data area in RD. (This bad practice shows up in programs converted from reporting mode.) As a best practice, you should always use the syntax Brian suggests, based on the view, not the line reference.

Thanks Brian and Douglas!

I wanted syntax given by Douglas and was aware with Brian’s one. As suggested will follow the advise.