Dimensioned Arrays

Kenneth Brody kenbrody at spamcop.net
Mon Apr 18 10:44:52 PDT 2011


On 4/18/2011 1:36 PM, smittyusn1 at bellsouth.net wrote:
> I will try to explain it better...............
>
> dim itms(15):60           thru  212
> it(8,*)=itms(@af)
> user supplies  (it) in field 60 ......
> @wlfa0 (field 60) it looks up inventory using (it) and  gets all the fields
> it needs
>
> gosub totals, writes, returns,  cursor goes to next line 61,  gets a new
> item needs, 62, 63, repeats....
>
> until he runs out of items on the ticket, escapes, saves it.
>
> dim lisp(15):213  (b0) start  thru  242 actually works but only gets data on
> the same line every lookup, it never fills in 214, 215, 216, etc, etc.
>
> Hope I am explaining it better.....
[...]

Well, you have now included a critical piece of information that was lacking 
before.  You assign to the "old" arrays in @WLF processing, yet the "new" 
arrays aren't assigned to until "normal" input processing.

You show "itms(@af)" as the reference to the "old" array.  You do not show 
how you do the assignments in "normal" input processing, but I am going on 
the assumption (which is the best I can do, given the lack of any other 
details) that it's the equivalent "lisp(@af)".

What is the value of @AF in @WLFA0, and what is it in processing unrelated 
to associated fields?

-- 
Kenneth Brody


More information about the Filepro-list mailing list