cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
Austin
Level I

Number Edit Box Not Storing Value when Entered by User

Hello,

I have the below script that creates a Window that asks the user to populate a Part Number and Lot Number. When the value is entered in the Part Number box and the Lot Number field is clicked, the value in the Part Number field disappears. This happens vice versa as well.

 

Any thoughts on why this is happening?

nw = New Window("Material Information", << Modal,

	Text Box("Information Type"),
	Text Box(""),
	
	V List Box(
		H List Box( Text Box("Material Part Number: "),
			str_PN_bx = Number Edit Box()),
		Text Box(""),
		H List Box (Text Box("Material Lot Number: "),
			str_LN_bx = Number Edit Box()),
		Text Box("")),
	
	V List Box(ok_btn = Button Box("OK",
		str_PN = str_PN_bx << Get();
		str_LN = str_LN_bx <<Get())),
		
	cncl_btn = Button Box("Cancel"));

 

Thanks!

1 REPLY 1
jthi
Super User

Re: Number Edit Box Not Storing Value when Entered by User

This isn't happening to me and the script seems fine.

jthi_0-1696274186567.png

My first guess would be that you try to enter something else than a number to number edit box.

Which JMP version and operating system are you using?

-Jarmo