Thanks, but I've already tried this.  This is on UD PE v7.1.

Bill
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Burwell, Edward
> Sent: Friday, January 06, 2006 1:57 PM
> To: '[email protected]'
> Subject: RE: [U2] [UD] How to determine the File Name within 
> a dictionary called Subroutine
> 
> try @FILE.NAME
> 
> -----Original Message-----
> From: Bill Haskett [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 06, 2006 4: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/
> 
> ______________________________________________________________________
> This e-mail has been scanned by MCI Managed Email Content 
> Service, using
> Skeptic(tm) technology powered by MessageLabs. For more 
> information on MCI's Managed Email Content Service, visit 
> http://www.mci.com.
> ______________________________________________________________________
> 
> ______________________________________________________________________
> This e-mail has been scanned by MCI Managed Email Content 
> Service, using Skeptic(tm) technology powered by MessageLabs. 
> For more information on MCI's Managed Email  Content Service, 
> visit http://www.mci.com.
> ______________________________________________________________________
> -------
> 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/

Reply via email to