At 10:07 PM 7/10/2015, Tom Hart wrote:

I am wanting to know if there is a way to output to desktop so I can
output to the desktop like I would a folder eg c:\myfolder\

In that particular case ...

Follow this very simple example below to understand the technique:

-- Step 01
-- Know the desktop path for Windows logged-in user:
-- Example ...
   SET VAR vUserDesktop TEXT = NULL
   SET VAR vUserDesktop = ('C:\Users\'+(CVAL('NetUser'))+'\Desktop\')

   If you wish to output the file into an existing folder on user's
   desktop, then add that folder name at the end of "vUserDesktop"
   variable.

   SET VAR vUserDesktop = (.vUserDesktop+'Exact_Folder_Name\')

-- Step 02
-- Create the output file name, for example ...
-- Example ...
   SET VAR vOutputFileName TEXT = NULL
   SET VAR vOutputFileName = (.vUserDesktop+'filename.txt')

-- Step 03
-- Now use the traditional R:BASE OUTPUT command as follows:
-- Example ...
   OUTPUT &vOutputFileName
   WRITE 'My first test to send output to desktop ...'
   OUTPUT SCREEN
   CLEAR VARIABLES vUserDesktop,vOutputFileName
   RETURN

   Notice the "filename.txt" file on Windows logged-in user's desktop
   or in that specific folder name on user's desktop, if defined.

Once you understand the concept of this simple, step-by-step exercise,
you should be able to define and concatenate all those variables
dynamically to accomplish your goal.

Have fun!

Very Best R:egards,

Razzak.

www.rbase.com
www.rbaseX.com
www.facebook.com/rbase
--
32 years of continuous innovation!
17 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--


Reply via email to