Script skipping order of evaluationHi. I'm hoping that this is just a fluke on my part.
I have a script that first creates a "duration" column & evaluates.
Next, i have the script find blanks and fill with previous non blank value (for deadbanding). it does this by generating a pop-up window for one to select which columns need this applied (granted, if i could just assume all of them need it, that *could* be one option of circumventing this issue)
However, the script doesn't "wait" for me to select which columns i want to fill down before moving to next lines.
How do i get around this??
Names Default to Here(1);
dt=Current Data Table();
column(dt, "Time")<<DATA type=""></DATA>
Quality and Process EngineeringRe: Script skipping order of evaluationYou need a modal window.
https://www.jmp.com/support/help/en/16.1/?os=win&source=application&utm_source=helpmenu&utm_medium=application#page/jmp/construct-a-modal-window.shtml
"Construct a Modal Window
When you submit a script with a modal window, JMP draws the window, waits for the user to make choices and click OK, and then stores a list of the variables with their values. Any attempt to click outside the window produces an error sound, and script execution is suspended until the user clicks OK or Cancel."
You'll find lots of questions and answers about modal windows in the community. At one time, on some OSs, you could refer to variables in a modal window for a short time after the window was closed. That's no longer true. There are several patterns people use for getting variables back...pick one that makes sense to you. The link above uses "return result".
edit: new post at Modal Dialogs might help.
Re: Script skipping order of evaluationHi,
You may be able to solve your issue by adding a "Wait (0)" command just before your _nw = New Window statement.
Best,
TS