I saw a similar post suggesting:
window("Journal: Untitled")<<close window
but unfortunately, this does not work. Does anyone else have anything else I can try? For reference, the journal is untitled.
(Title is: "Journal: Unnamed *VALUE*").
Current Journal() << Close Window;
might work. See Scripting Index for cor Current Journal (and for Close All)
That worked! one more question, I have a new window but I have something like:
NewWindow = New Window("Test", jrnl << Journal(), modal, current journal() << Close Window;<BR /><BR />H List Box(<BR /> buttonone = button box("button one"),<BR /> buttontwo = button("button two")<BR />) );
It wont recognize modal, is there a reason why? it removes my buttons when I try to use it and gives me an error saying "Unknown"
I cannot understand the code you provided, but modal is missing <<
Names Default To Here(1); If( ex = New Window("Dialog() example", <<Modal, <<Return Result, V List Box( H List Box("Set this value", variable = Number Edit Box(42)), H List Box(Button Box("OK"), Button Box("Cancel")) ) ); ex["button"] == 1; , ex["variable"], "CANCEL" );