Paul,

To expand on Dawn's reply:

Keep in mind that R:BASE creates the $$$ file wherever you have SCRATCH set to 
put temp files.  So, if that is not where you want your file to live, capture 
the filename and create *your* file of the same name where you want it and 
delete the original.

Set var vfilename = Filename(0)  -- creates a unique random filename with $$$ 
extension 
DELETE &vfilename
SET VAR vfilename = (SRPL(.vfilename,'$$$','TXT',0)) -- replace the $$$ with 
whatever
SET VAR vfilename = (.yourpath + '\' + .vfilename)

Emmitt Dove
Manager, Converting Applications Development
Evergreen Packaging, Inc.
[email protected]
(203) 214-5683 m
(203) 643-8022 o
(203) 643-8086 f
[email protected]

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dawn Hast
Sent: Thursday, March 12, 2009 3:31 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: Temp Create File Names

I think my previous reply was blocked....

Set var vfilename = Filename(0)  -- creates a unique random filename with $$$ 
extension 
SET VAR vfilename = (SRPL(.vfilename,'$$$','TXT',0)) -- replace the $$$ with 
whatever 

Dawn

-------------- Original message from "Paul InterlockInfo" 
<[email protected]>: -------------- 


So let’s say I am going to create a output file:
 
Output c:\temp\SomeTxt.txt     
Write .vVariableWanted
Output Screen
 
 
But I would rather output to some temp file name that is called by ?? So in 
return I get something like A3ER22545.$$$ and use that file name till I am done.
 
 
I use ?? to create this scratch file name.   
 
 
Sincerely,
Paul Dewey 
 
 


Reply via email to