Standard Dialog Box example:
Names Default To Here( 1 );
ex = Dialog(
Title( " Dialog() example" ),
"Set this value",
variable = EditNumber( 42 )
Button( "OK" ),
Button( "Cancel" )
ex["button"] == 1;
How do I utilize the secret of the universe number in a table formula following the dialog?
I only spent literally a minute but maybe this will help..
// I entered 33 versus the default of 42 and added the line at the bottom.
// FYI. DIalog is depracated and New Window is encouraged.
Here's a version that uses new window instead of the old dialog. The variable x is at your disposal after the dialog exits.
ex = new window("Dialog() example", << modal(),
textbox("Set this value"),
variable_neb = numbereditbox( 42 )
Button box( "OK",
x = variable_neb << get;
Button box( "Cancel",
x = .;
There are no labels assigned to this post.