How do I close a “New window”?I have been trying to close new windows but am successful, for arguments sake, I tried x = New Window( *some code*);
Close(x);
x << Close();
x << Close;
x << Close Window();
Any help would be greatly appreciated
ScriptingRe: How do I close a “New window”?Here is a slightly more complicated example showing how to close a non-modal window with either the OK or Cancel buttons.
nw = new window("Test",
textbox("Hello World"),
panelbox("Actions",
hlistbox(
okb = button box("OK", << set icon("Go"),
set script(
show("Clicked OK");
// Other OK actions here
nw << close window();
),
),
canb = button box("Cancel", << set icon("Stop"),
set script(
show("Clicked Cancel");
nw << close window();
),
),
)
)
);

Re: How do I close a “New window”?For syntax questions such as you are asking, you can find your answers in the Scripting Index.
Help=>Scripting Index
Re: How do I close a “New window”?<< Close Window; or << Close Window(); should work
Names Default To Here(1);
nw = New Window("");
wait(2);
nw << Close Window();