I am not sure this is possible, it does not seem to be working. I have written three different scripts to manipulate a data table and then journal a bunch of plots. The scripts are quite involved but fairly similar. However, I have them written in separate files. Then I wrote another script to create a new window with a radio box option to choose which script to run. I am using the choose conditional function to run the appropriate script. However, nothing seems to be happening. Are there any ideas where I may be going wrong? Is this a namespace thing because I have stayed away from this complicated subject?
thanks in advance
H
Clear Symbols();
//dialog for fitting options
dlg = New Window( "Fit By ...",
V List Box(
Panel Box( " choose an option: ",
rad1 = Radio Box( {"option1", "option2", "option3"} )
),
Text Box( " " ),
H List Box(
bok = Button Box( "ok",
fit = rad1 << get;
dlg << close window;
),
Text Box( " " ),
bcancel = Button Box( "cancel", dlg << close window )
),
Text Box( " " )
)
);
If( !Is Missing( fit ),
Choose( fit,
//option 1
Include( "script1.jsl" ),
//option 2
Include( "script2.jsl" ),
//option 3
Include( "script3.jsl" ),
)
);