cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

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

Number Edit Box returned value

I have a Number Edit Box and when nothing is specified I want to assign a default value to my variable and also prompt a message. If nothing is specified (meaning user did not put anything on the number box) and I view my variable on the "watch" window on the debugger, it seems to have a value of "." but I could not get a match (see my script below):

stepSize = 10;

New Window( "",

  <<Modal,

    V List Box(

      Panel Box( "Please specify",

        H List Box(

          Text Box( "Step  " ),

          tBox = Number Edit Box( defaultStepSize ),

          Button Box( "OK",

            stepSize = tBox << Get;

          )

        )

      )

    )

  );

If( stepSize == "." | stepSize == 0 | !Is Number( stepSize ) | stepSize == "" | Is Empty(stepSize),

  stepSize = 10;

  Beep();

  New Window( "No Step Specified",

  <<Modal,

  H List Box( Text Box( "Either No Step or 0 was specified! Will use the default of 10!" ), Button Box( "OK" ) )

  );

);

What is the returned value of Number Edit Box when nothing is specified?

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Number Edit Box returned value

If( ismissing(stepSize) == 1 | stepSize == 0 | !Is Number( stepSize ) | stepSize == "" | Is Empty(stepSize),

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: Number Edit Box returned value

If( ismissing(stepSize) == 1 | stepSize == 0 | !Is Number( stepSize ) | stepSize == "" | Is Empty(stepSize),

Jim
csoon1
Level III

Re: Number Edit Box returned value

Thanks. I can't believe I missed "Is Missing" considering I thought I tried all "Is Whatever" available on the documentation. LOL.

Recommended Articles