Jump to content

User input/Graphical: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 919:
string = tkSimpleDialog.askstring("String", "Enter a String")</lang>
 
=={{header|Rascal}}==
<lang rascal>import vis::Render;
import vis::Figure;
 
public void UserInput2(){
integer = "";
string = "";
row1 = [text("Enter a string "),
textfield("",void(str s){string = s;}),
text(str(){return " This input box will give a string by definition.\n You entered <string>";})];
row2 = [text("Enter 75000"),
textfield("",void(str v){integer = v;}),
text(str(){return " <integer == "75000" ? "Correct" : "Wrong">";})];
render(grid([row1, row2]));
}</lang>
=={{header|REBOL}}==
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.