Thank you Emmitt, Dawn and Claudine

That was exactly what I was looking for.  In this multi-user world and the 
possibility of the same form/eep running I did not want the same static file 
name being used in the same folder.  In a lot of cases this will also be in 
'c:\temp' but in the event scratch is not setup then I wanted to make sure 
(CYA-lol).

I also like confusing users and masking what is really happening.  And in this 
case should the user exit with ctrl-alt-del then it should still be difficult 
for the user to read all those .$$$'s files  ;)

Sincerely,
Paul Dewey 


Yes! I use the RBase.cfg recommended settings, but should the ..... happen then 
at least I tried.



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

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]


Reply via email to