Larry Terry wrote:
The objective of the code is to add new records based on existing records with a partial change to the key. I'm getting "type of the expression must be an array type but it resolved to DstidArray" on dsTidRecTbl[i]
The dsTidRecTbl variable is a reference variable that points to an instance of DstidArray. It refers to an object, of class type DstidArray. And of course, it is *not* an array. You named the class type with "Array" in the name, but that doesn't make it an Array.
Which means that you can't deference it like an array.... hence, dsTidRecTbl[i], notice the square brackets, is not legal.
Henry