> Sometimes it is not good idea to keep uncontrolled the size of the
> supporting dynamic array with file names that is used to locate the
> position of the file.

Of course... this probably sounds stupid, but I prefer to simply
maintain a set of equates for each file position, along with a
dimensioned array with the actual file names in it.

Something like this:

===file COMMON.FILES===>
EQU customer     TO 1
EQU invoice         TO 2
[...]

filenames = "CUSTOMER": @AM : "INVOICE" : @AM : [...]

DIM files(20)
DIM item.ids(20)
DIM records(20)
[...]
<===end file COMMON.FILES===

Then, to use the array, it's something like:

READ records(customer) FROM files(customer),item.ids(customer) ELSE
records(customer) = ""

Of course you have to have a routine called OPEN.FILES that runs thru
the files in "filenames" and opens each one in order.

It does take a bit of planning up-front but it's pretty simple and has
worked well for me.

Just a thought.

Brad.

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to