User input/Graphical: Difference between revisions
Content added Content deleted
m (→{{header|Ruby}}: nl) |
m (→TI-89 BASIC: new example) |
||
Line 272: | Line 272: | ||
puts $input</lang> |
puts $input</lang> |
||
The <tt>-validate</tt> option can be used to test the contents/edits of the widget at any time against any parameters (including testing <tt>string is integer</tt> when the user hits <Return> or such) |
The <tt>-validate</tt> option can be used to test the contents/edits of the widget at any time against any parameters (including testing <tt>string is integer</tt> when the user hits <Return> or such) |
||
=={{header|TI-89 BASIC}}== |
|||
This program leaves the requested values in the global variables ''s'' and ''n''. |
|||
<pre style="font-family:'TI Uni'">Prgm |
|||
Dialog |
|||
Title "Rosetta Code" |
|||
Request "A string", s |
|||
DropDown "An integer", {"75000"}, n |
|||
EndDlog |
|||
74999 + n → n |
|||
EndPrgm</pre> |
|||
=={{header|VBScript}}== |
=={{header|VBScript}}== |