G
Guest
After I assign non-contiguous ordinal positions to tabledef fields, can I use
those positions to refer to the fields in the related dataset?
I have a module that is tantamount to an update query with extensive data
integrity manipulation.
I access a record in tbl1, move several fields to an array, perform checks
and reset values in the array, and transfer the array to several fields in
tbl2. For those fields, I have set the ordinal position to 100 to 106...
tdf2!fld1.ordinalposition=100 ...
What I'd like to do is...
for i=0 to 6
rst2.fields(100+i)=arrayDate(i)
next
....but I receive an error message "item not found in this collection."
The array is essential to the integrity-checking routine, and using 100+i
seemed to be an intuitive way to populate the output record. (I have several
other fields in the tbl2 record)
Any wisdom is appreciated.
those positions to refer to the fields in the related dataset?
I have a module that is tantamount to an update query with extensive data
integrity manipulation.
I access a record in tbl1, move several fields to an array, perform checks
and reset values in the array, and transfer the array to several fields in
tbl2. For those fields, I have set the ordinal position to 100 to 106...
tdf2!fld1.ordinalposition=100 ...
What I'd like to do is...
for i=0 to 6
rst2.fields(100+i)=arrayDate(i)
next
....but I receive an error message "item not found in this collection."
The array is essential to the integrity-checking routine, and using 100+i
seemed to be an intuitive way to populate the output record. (I have several
other fields in the tbl2 record)
Any wisdom is appreciated.