Origin Ver. and Service Release: OriginPro 8 SR3
Operating System: Ubuntu 9.04 (wine)
Hello,
I'm using filenames to name my workbooks but it doesn't work properly with some filenames. This is the part of my code that deals with it:
filename$ = path.GetFileName(1)$;
newbook name:= filename$ option:=lsname;
plotxy iy:=[filename$]!(1,5) plot:=200;
It works fine with filenames that consist only of letters but it wouldn't work with "2162z.dat". I get an error:
Failed to resolve range string, VarName = iy, VarValue = [filename$]!(1,5)
How to force my filename$ to be a string?