DIM Question

GCC Consulting gcc at optonline.net
Sat Apr 17 09:05:53 PDT 2004


 

-----Original Message-----
From: filepro-list-bounces at lists.celestial.com
[mailto:filepro-list-bounces at lists.celestial.com] On Behalf Of Bob Stockler
Sent: Friday, April 16, 2004 12:39 PM
To: filePro mailing list
Subject: Re: DIM Question

On Fri, Apr 16, 2004 at 10:21:01AM -0400, Scott Burkhart wrote:
| I have dimensioned an array in automatic processing, when I try to use 
| the array in input I get a compilation error.  I then have to 
| dimension the array in input processing.
| 
| Example: automatic --> dim qty(10)(10,,2,g)
| 
| Shouldn't the array be recognized in input processing if it is defined 
| in automatic processing?

No.

An array must be dimensioned on the table it's used on.

If you want to use an array on both automatic and input tables, and want it to
have the same values on both, they both must be mapped to the same real or dummy
fields.
----------------------------------------------------------------
Bob,

Why is it that everyone assumes that an array is being mapped to fields, real or
dummy?

I have used arrays for years to hold data such as totals; or in select
processing multiple responses such as customer codes or invoice/order #'s.

I am currently writing a selection routine which will allow an order clerk so
select all or selected orders, which she entered, for printing. 

Since 2 print jobs need to be run for each order, address labels and barcode
labels, this has been a tedious job. The process, from *clerk, does a browse and
selects only unprinted orders, the order numbers are stored in one array and the
store #'s in another array.  Two system calls are made, first the address labels
are printed from the store master file and then the associated order barcode
labels.  A counter is incremented after the second print job and loops back to
print the next order's labels until a blank element is reached where the program
exits.

One other piece of this, an order listing is printed prior to the labels being
printed.  This list show all of the orders with a "Y" in the column of the
orders selected to be printed.  A manual check on the labels being printed.

Each order clerk processes about 50 to 70 orders a day and keeping track of what
has been printed and what hasn't has become a problem as my client's business
has grown.

By the way, I would love to be able to dim global arrayname just like declared
values. 

Richard Kreiss
GCC Consulting 





More information about the Filepro-list mailing list