Dimensioned Arrays
Richard Kreiss
rkreiss at verizon.net
Sun Apr 17 13:56:52 PDT 2011
Richard
Sent from my iPhone
On Apr 17, 2011, at 1:03 PM, <smittyusn1 at bellsouth.net> wrote:
> Let me see if I can explain this better.
>
> Cust x has a 15 items max Invoice with a dimensioned array of 10
> associated fields that do the code lookup, price, ext, tax, etc. That works
> good, now he wants to add a LIST price for each item + Extended List with a
> total.
>
> When he Escapes to save his invoice I would like to gosub to a new
> Dimensioned Array (b0-b9) of 15 possible items, find the code in his
> inventory grab the list price, extend it and return. When I try that now
> all I get is the first code + list price.
>
> Windows 7, filePro 5.0
>
> Wayne Smith
> Port Orange, Florida
>
>
>
>
>
> -----Original Message-----
> From: Kenneth Brody
> Sent: Sunday, April 17, 2011 11:20 AM
> To: smittyusn1 at bellsouth.net
> Cc: filepro-list at lists.celestial.com
> Subject: Re: Dimensioned Arrays
>
> 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
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
More information about the Filepro-list
mailing list