Another method would be to TRANS to the files first and pass those through
the subroutine parameter list.
If that is not possible, a quick way to see if it was the open files filling
stuff up, would be to use the XLATE function within your subroutine which
does not need an OPEN before using. It's not as fast as opening once and
passing through common, but would be a quick way of testing if that was the
problem, hth - aee
Help Information For: "UNIBASIC XLATE"
Syntax
XLATE(filename, rec.id.expr, attrib.expr, "code")
Description
The UniBasic XLATE function returns the contents of an attribute and takes
additional action if the record does not exist or the attribute is empty.
This function performs the same action as the TRANS virtual attribute
function.
Parameters
The following table describes each parameter of the syntax:
Parameter Description
filename Specifies the name of a file from which to return
the contents of an attribute. file.expr must be
the name of a valid UniData file, not the value
of a file variable, even if the same file was
opened within the program.
rec.id.expr Specifies a record ID in file.expr.
attrib.expr Specifies a valid attribute in file.expr.
"code" Enter a code specifying action to be taken if the
record does not exist or the attribute is empty:
C -- Substitutes the id.exp for the value of
the function.
V -- Returns an empty string and print an error
message.
X -- Returns an empty string.
Related Command
UniData
TRANS -- For information, see the Using UniData manual.
Page 'U'p, 'D'own, 'T'op, 'B'ottom or 'Q'uit?
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Fred Finken
Sent: Monday, October 25, 2004 07:36
To: [EMAIL PROTECTED]
Subject: Re: [U2] [UV] 10.1 SELECT FILE BY DICT (I-type - SUBR) causing
Read operation failure
Not sure if this is the problem, but make sure that you are not repeatedly
opening the files in the subroutines. Open them once to named common.
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/