[JMP - JSL Scripting] How do a call a Button Box?

#1
Hi experts,

I've been creating a small application with a JSL script. My Panel boxes works fine but my button box doesn't work when I chose "RUN", does anyone now what is missing in my script?

Example:

::customNewWin = New Window( "Test Report",
H List Box(
V List Box(
Panel Box( "Chose age :",
rbAge = Radio Box( {"18 to 34", "35 to 54",
"55 and up", "All"} )
),
Panel Box( "Chose Sex:",
rbSex = Radio Box( {"F", "M"} )
),
Panel Box( "Chose Length",
rbHeight = Radio Box( {"20-39", "40 to 59", "60 and up", "All"} )
)
),
Panel Box( "Submit your choices",
Lineup Box(
N Col( 1 ),
Button Box( "Run", ::eek:nRun << current data table () ),
Button Box( "Cancel",
::customNewWin << CloseWindow;
Throw();
) ,
Text Box( " " ),
Button Box( "Help", ::HelpScript )
)
)
)
) ;