Get length of dynamic variable in INTERFACE 4

Yes you can do that when you want just one array entry.
When you give it no index informations it will hand over the full array. The interface react like a “write work file” for example.

It work’s with a Array like this:

define data local
    1 returncode (B4)
    1 index (I2)
    1 index2 (I2)
    1 testarray (A20/1:5,1:5) /*I just rezised the array so you can see the HexDump better
end-define

for index = 1 to 5
    for index2 = 1 to 5
         compress "ffff " index " " index2 
            into testarray(index, index2)
    end-for
end-for

call INTERFACE4 "PRALL" testarray
compute returncode = ret("PRALL")
write returncode
end

Then i get the full size of the array (in this case 500Bytes ). I attached a screenshot from the logfile so you can see what i mean.