Hi,
How can I pass a string containing the name of the file to environment?
com the_file = "C:\folder\myfile.eps"
environment gsave=the_file
Thanks,
Carl
Pass string with filename to gsave
-
TomDoan
- Posts: 7826
- Joined: Wed Nov 01, 2006 4:36 pm
Re: Pass string with filename to gsave
ENVIRONMENT doesn't allow that as it's designed to mimick a command line (which wouldn't have access to variables within the program). Newer versions of RATS have the GSAVE instruction which allows use of indirect strings, as in
com the_file = "C:\folder\myfile.eps"
gsave(format=portrait) &the_file
com the_file = "C:\folder\myfile.eps"
gsave(format=portrait) &the_file