15 lines
452 B
Plaintext
15 lines
452 B
Plaintext
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]));
|
|
}
|