Hello,
Sorry to post such a simple question but I've been unable to find the answer after some searching.
I'm trying to create a simple dialog box that takes in some input from a user in order to create a plot from an active workbook. The problem is that the filename variable is not being set properly, instead of creating a file with the user input it instead prints "--", indicating that the variable name isn't truly being set.
For example, if I set fileName to "file 1" in the pop up dialog box, the name displayed in the project explorer simply appears as "--".
My code is shown below
// First, declare the variables to be used:
double freq;
string fileName$;
int xcol , ycol;
// Use GetN dialog to collect user data:
getn
(Frequency) freq
(File Name) fileName$
(X Column) xcol
(Y Column) ycol
(Display Name);
plotxy iy:=col($(ycol)) plot:=200 ogl:=[<new template:=singTemp name:= $(fileName$)>]
Any help is much appreciatged!