Yeah works perfectly, I just created a couple of local variables as idx and idy to store the array key values and then:
-- For each XY element
----Set idx to array.CurX
----Set idy to array.CurY
-- array,Set value at (idx,idy) to replace(array.At(idx,idy), "SHORTCODE", newline&newline))
Not done the family thing yet but will do when the need arises. Again, many thanks for your help.