Can you send it into the Subroutine as a parameter?
SUBR("MY.SUB", @FILENAME, Dict_Name, etc. )
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Haskett
Sent: Friday, January 06, 2006 2:04 PM
To: [email protected]
Subject: [U2] [UD] How to determine the File Name within a dictionary called
Subroutine
As I trudge along with a client conversion I've noticed a difficulty using
@FILENAME within a BASIC program...it works fine in UniVerse but fails to
compile in UniData ("P" Ecltype). I'm trying to determine, in a subroutine
called from a virtual definition, if the file being processed needs to be
opened. Code looks like:
CurrFileName = @FILENAME
IF CurrFileName = "EMPLOYEES" THEN
ReturnValue = @RECORD<15>
END ELSE
ReturnValue = @RECORD<12>
END
RETURN
I can use @FILENAME in a virtual dictionary definition but not in BASIC.
How do I get the variable of the file being processed in a query, in
UniData?
Since the same code runs on U2 and D3 I'd like to keep this business rule in
the subroutine, that can be used by both.
Thanks, any help would be appreciated.
Bill Haskett
-------
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/