syntax for using a variable in an array

Richard Kreiss rkreiss at verizon.net
Wed Jul 31 08:08:48 PDT 2013


Top post:

Not your question. But if you are looking for missing invoice numbers why not do the lookup based on an index of invoice numbers.?

Get the first invoice # into a dummy field, add one and a getnext. If it matched repeat until it doesn't, post to your array. Add one and compare again, no match, post to next array element. Repeat until the variable matched the invoice number. The do a getnext. And repeat

What is inv(2) defined as?

Richard
Sent from my iPhone

On Jul 31, 2013, at 7:12 AM, tob at b-e-s-t.com wrote:

> I want to loop through an invoice file and find invoice numbers that have been used and thus invoice numbers that have not been used.
> The prc below will do it but i do not have the syntax for using a variable in an array correct.
> Thanks
> 
> ::dim ni(100000)(8,.0):
> ::rn(8,.0)="1":
> ::iv(5,.0)=""
> nxinv:::
> ::lookup inv = muinv  r=rn   -n:
> :not inv:goto fini:
> ::iv=inv(2):
> ::ni(iv)="1":  LINE THAT ERRORS
> ::rn=rn+"1":
> ::getnext inv:
> ::goto nxtinv:
> fini:::
> :' output total left::
> 
> _______________________________________________
> 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