

In this task, the goal is to input a string and the integer 75000, from graphical user interface.



See also: User input/Text

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]));
}