davidvilla
Member
Hi
I am trying to set fields dynamically in a table with array fields. I am not sure, how to represent an element of the array field when setting the field handle. Here is my example.
define temp-table tt1
fields fld1 as int extent 3.
define variable bh-tt1 as handle no-undo.
define variable fh-tt1 as handle no-undo.
bh-tt1 = buffer tt1:handle.
fh-tt1 = bh-tt1:buffer-field("fld1"). --> how should I represent the elements of the array here.
I tried bh-tt1:buffer-field("fld1[1]") and bh-tt1:buffer-field("fld1")[1]. Both didn't work.
Any ideas?
Thanks in advance!
I am trying to set fields dynamically in a table with array fields. I am not sure, how to represent an element of the array field when setting the field handle. Here is my example.
define temp-table tt1
fields fld1 as int extent 3.
define variable bh-tt1 as handle no-undo.
define variable fh-tt1 as handle no-undo.
bh-tt1 = buffer tt1:handle.
fh-tt1 = bh-tt1:buffer-field("fld1"). --> how should I represent the elements of the array here.
I tried bh-tt1:buffer-field("fld1[1]") and bh-tt1:buffer-field("fld1")[1]. Both didn't work.
Any ideas?
Thanks in advance!