POPUP.sml

  Download

More scripts: SML Fundamentals

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
# popup.sml
# sample script for "Writing Scripts with SML"
# Example use of Popup dialogs
clear();
class STRING prompt$, name$;
numeric val;
prompt$ = "Pick a number from 1 to 10";
val = PopupNum(prompt$, 5, 1, 10, 0);
print("You chose the number", val);
name$ = PopupString("Enter a name","Fred");
print("You chose the name", name$);