cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Andyon98
Level II

How do you close a journal?

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*").

3 REPLIES 3
jthi
Super User

Re: How do you close a journal?

Current Journal() << Close Window;

might work. See Scripting Index for cor Current Journal (and for Close All)

-Jarmo
Andyon98
Level II

Re: How do you close a journal?

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;

H List Box(
buttonone = button box("button one"),
buttontwo = button("button two")
) );

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"

jthi
Super User

Re: How do you close a journal?

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"
);
-Jarmo

Recommended Articles