I have created a blank application and written jmp script for displaying new window in the pace allocated for module1. But when running the application another window is getting popped up. How to address that window in order to make it invisible.
This is the example code of new window.
Names Default To Here( 1 );
If(
ex = New Window( "Modal Dialog example",
<<Type( "Modal Dialog" ),
<<Return Result,
<<On Validate(
If(
num = variable << Get;
num >= 1 & num <= 100;
,
variable <<
Background Color( "Background" );
1;
,
variable <<
Background Color( "Light Yellow" );
0;
)
),
V List Box(
Text Box(
"Enter a value between [1,100]:"
),
H List Box(
variable = Number Edit Box( 42 )
),
H List Box(
Button Box( "OK" ),
Button Box( "Cancel" )
)
)
);
ex["button"] == 1;
,
ex["variable"],
"CANCEL"
);
I am attaching the two windows that are getting popped up.