Button Boxes - Steps into different .jsl// First Option [Of course the doSomethingElse is accomplished by an Include(C:\doSomethingElse.jsl)
win = New Window( "DataBase",
// <<MODAL></MODAL>
After looking through the community boards i found how to use botton boxes when creating windows. Unlike using Check Box() or Radio Box() that require clicking through different selection and the hitting 'OK' to excute a varitey of If() statements. I then learned that you have to not use << Modal in order to get the 'OK and 'Cancel' button but insteat using 'Exit' which just exits the window. I find this to be more user friendly when it comes to others executing a wide variety of options. The button boxes then allow you to use different icons for each button.
Now to my problem:
Is there a way to do a multiple of .jsl (which envolves the Include() function)? Can you introduce If() statements inside these button box windows?
Each doSomethingElse steps into another window with a different set of button boxes
Thanks
Re: Button Boxes - Steps into different .jslYes. In the example, the two statements are separated by a semicolon. Each statement is an expression that is evaluated. I imagine
doSelection_SS
does something that selects some data and
doSomethingElse
processes the selected data.
Re: Button Boxes - Steps into different .jslThank you for the reply..
Question: If i use the 3rd option that would execute both subscripts and not treat it like an IF() statement?
Re: Button Boxes - Steps into different .jslButtonBox has one script that runs when the button is pressed. I think the 3rd argument is being quietly ignored:
Button Box( "S_PARAMS", doSelection_SS, doSomethingElse)
You probably want this
Button Box( "S_PARAMS", if( doSelection_SS, doSomethingElse) )
or (semicolon, not comma)
Button Box( "S_PARAMS", doSelection_SS; doSomethingElse)
both of which have only two arguments, separated by a comma, for the ButtonBox function.