and further to this, if it is a variable number of files you are opening
and you have either performance or memory concerns remember (this from
the manual)

Dimensioned arrays are allocated either at compile time or at run time,
depending on the flavor of the account. Arrays allocated at run time are
called standard arrays. Arrays allocated at compile time are called
fixed arrays.
Standard arrays are redimensionable; fixed arrays are not
redimensionable
and do not have a zero element. All arrays are standard unless the
program
is compiled in a PICK, IN2, or REALITY flavor account, in which case
they
are fixed arrays. To use fixed arrays in PIOPEN, INFORMATION and IDEAL
flavor accounts, use the STATIC.DIM option of the $OPTIONS statement. To
use standard arrays in PICK, IN2, and REALITY flavor accounts, use
$OPTIONS -STATIC.DIM.

See the DIMENSION statement in the BASIC manual

HTH

David Logan
Database Administrator
HP Managed Services
139 Frome Street,
Adelaide 5000
Australia

+61 8 8408 4273 - Work
+61 417 268 665 - Mobile
+61 8 8408 4259 - Fax



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tony Wood
Sent: Thursday, 13 May 2004 10:33 AM
To: [EMAIL PROTECTED]
Subject: Re: [U2] [UV] File handles in arrays


and besides, it works...

Regards,

T.

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 13, 2004 10:11 AM
Subject: RE: [U2] [UV] File handles in arrays


> Not a chance.
>
> A dynamic array is really just a string (with delimiters). A file
variable
> has to be stored in a real variable.
>
> Why do you have a problem with using a matrix, it's more efficient
than a
> dynamic array anyway.
>
> -----Original Message-----
> From: Barry Brevik [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 13 May 2004 08:01
> To: [EMAIL PROTECTED]
> Subject: [U2] [UV] File handles in arrays
>
>
> Is it not possible to store a file handle in a dynamic array?
>
> This seems to work:
>
> DIM FILE.HANDLES(10)
> OPEN '','PARTS' TO FILE.HANDLES(1) ELSE PRINT 'noopen'
> READ THIS.REC FROM FILE.HANDLES(1), '1900-90' ELSE PRINT 'noread'
>
> ...but I'd rather use dynamic arrays.
> -------
> u2-users mailing list
> [EMAIL PROTECTED]
> http://www.u2ug.org/listinfo/u2-users
> Disclaimer.  This e-mail is private and confidential. If you are not
the
> intended recipient, please advise us by return e-mail immediately, and
> delete the e-mail and any attachments without using or disclosing the
> contents in any way. The views expressed in this e-mail are those of
the
> author, and do not represent those of this company unless this is
clearly
> indicated. You should scan this e-mail and any attachments for
viruses.
This
> company accepts no liability for any direct or indirect damage or loss
> resulting from the use of any attachments to this e-mail.
> -------
> u2-users mailing list
> [EMAIL PROTECTED]
> http://www.u2ug.org/listinfo/u2-users
-------
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users
-------
u2-users mailing list
[EMAIL PROTECTED]
http://www.u2ug.org/listinfo/u2-users

Reply via email to