Dimensioned Arrays

Kenneth Brody kenbrody at spamcop.net
Sun Apr 17 18:48:15 PDT 2011


On 4/17/2011 6:21 PM, smittyusn1 at bellsouth.net wrote:
>
> Ken Brody,  original processing ....not sure how to clip it out and get it
> here but here goes....
>
> Input Processing
> dim itms(15):60
> it(8,allup)=itms(@af)
>
> @wlfa0, (item code) 60 thru 74   looks up items for his invoice and gets
> everything,  15 possible items.
>
> I would like to add 2 new fields to this array the easiest way possible,
> when it looks up the inventory item or when he escapes to save and exit the
> invoice.
[...]

So you have ten arrays, aliased to the fields which correspond to the A0 
through A9 groups, correct?  And now you have created a B0 and B1 group, and 
aliased two arrays to them correct?

 From the above code it appears that the access to the arrays is not related 
to them being associated fields.  (Well, except that you use @AF as the 
subscript.)

If you already have a way to access the first ten arrays, what's the problem 
with accessing the two new arrays the same way?  Where you have "itms[@af]" 
above to get one of the A* fields, simply use 
"array_which_is_aliased_to_b0[@af]" to get the B0 fields.

You still haven't shown what the actual problem is.

-- 
Kenneth Brody


More information about the Filepro-list mailing list