An example in “Manipulating Expressions” on page 248 in the “Programming Methods” chapter, showed how to use the Substitute Into() function to input coefficients for a quadratic polynomial into the quadratic formula and then use the formula to calculate the roots of the polynomial. That example required specifying the coefficients as arguments to Substitute Into().
The section Construct a Column Dialog shows an example to collect coefficients from the user using a modal dialog box.
<<Modal,
a = a << Get;
b = b << Get;
c = c << Get;
x = {Expr(
xx = Eval Expr( x );
results = Expr(
ymin = -20;
ymax = 20;
error = Expr(
图 11.31 A Custom Platform Launch Window
Clicking OK, displays a results window (图 11.32, left), with either the roots or an error message. Rerun the script, input 5, 4, and 5 respectively and click OK. Note that JMP displays an error message (图 11.32, right).
图 11.32 The Custom Platform’s Report