Modal Box If Statement Not Assigning Value to VariableUsing the code below I offer the user the choice of 4 products to analyse.
I use an if statement to open the correct file for the correct product.
I also assign a number for a variable I will need at a later date.
When I attempt to print this variable I get an error saying Name Unresolved at line 18.
It appears time_mult is somehow not being properly defined.
win = New Window( "Product Choice",
<<MODAL></MODAL>
The following test code works perfectly and seems to me to look almost identical. I was wondering if anyone can identify what's going wrong
win = New Window( "Combo Box",
<<MODAL></MODAL>
ScriptingWindowsRe: Modal Box If Statement Not Assigning Value to VariableI needed a semi colon at the end of line 3
Re: Modal Box If Statement Not Assigning Value to VariableThe issue is that you have a comma after the statement instead of a semicolon
x = cb<<GET></GET>
The On Validate() function has only 1 element
On Validate( expr )
When there is a comma after the statement, JMP sees
On Validate( expr, expr );
and it executes only the first element