ccsrvc
15th October 2002, 22:42
A program sript defines an array as follows:
extern domain tcmcs.mydouble length(48)

The applicable form contains 48 fields each identified with the name "length" but with element numbers 1 thru 48

Question: Which 4GL function is used to display data in any specific field of the array. And give an example of its use.

Things I have tried:

1) display("length(i)")
2) display.fld(i, "length")

mark_h
15th October 2002, 23:14
Use attr.element equal to the array field you want to redisplay. At least this appears to work.



extern domain tccwoc main.f(10)
extern domain tccwoc main.t(10)
field.main.f:
after.input:
| Set main.t equal to main.f
main.t = main.f
| For some reason Change main.f for last
| main.f in array
attr.element = 10
main.f(1,10) = main.f(1,1)
display("main.f")


mark