Code: Select all
subroutine process_workfile (string fname, string sname)
%fn = fname
wfopen {%fn}
%sn = sname
endsub
call process_workfile ("example.wf1", "example_series")Code: Select all
subroutine process_workfile (string fname, string sname)
%fn = fname
%sn = sname
wfopen {%fn}
endsubThe second issue is this: if I remove the %fn=fname line, and just have:
Code: Select all
subroutine process_workfile (string fname)
wfopen {fname}
endsubTo prevent these kinds of problems I now always have a few lines of code at the start of any subroutine which assign the values of any passed parameters to variables (e.g. %fn in example above) and then only use those variables in the rest of the subroutine. However this seems a bit of a work-around. Is there something I'm missing or doing wrong?
Thanks
