Dimensioned Arrays

Kenneth Brody kenbrody at spamcop.net
Sun Apr 17 08:20:55 PDT 2011


On 4/17/2011 9:05 AM, smittyusn1 at bellsouth.net wrote:
> Experts,
>
> I have an Invoice file,  cust x has been using for 10 years,  15 items on
> his invoice.    I have associated fields a0 thru a9 for elements within  the
> invoice (define) itself,  this works great.  I have tried and tried to ADD
> to some new elements ....example b0 thru b1 (15 of them), just two things I
> need that he wants to add NEW to his invoice....LIST PRICE and EXTENDED LIST
> PRICE, (I can use quantity field a1 to extend list  price to show what the
> his customer is saving on the printed Invoice.  (extended field total =
> a1*b1) then add them up for a total.  The fields are contiguous in the real
> fields.
>
> When I do an invoice and assign data .....it always fills in the first field
> in the array  b0 ....next time it overwrites it with fresh data from the
> lookup into the Inventory file, without filling in the 2nd, 3rd, 4th, etc.
> real field on the invoice.
>
> Windows 7,  filePro 5.0
>
> What am I doing wrong ?  I hope I explained it right......Thanks ahead of
> time.

I'm not sure what this has to do with arrays, an mentioned in the subject, 
since you never refer to arrays in the body of the message.  (Except for a 
strange reference to "the array b0".)

The A group and the B group are not related.  If, for example, you have 
something in @WEFA1 processing, when you refer to anything A0 through A9, 
you refer to the same instance.  However, if you refer to anything in B0 and 
B1, you will only get the first instance.

-- 
Kenneth Brody


More information about the Filepro-list mailing list