else if (lastToken == Token.Question) { string abc = ""; abc = vars[lex.Identifier].String; //This box of code handles the Question identifier, it takes input from user and sets to the variable //Console.Write("Input value: "); string input = ""; DialogResult result = MessageBox.Show(abc, "Confirmation", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { //... input = "Yes"; } else { input = "No"; } //string input = Console.ReadLine(); Value value = new Value(input); SetVar(lex.Identifier, value); prim = lex.Value; GetNextToken(); //Console.WriteLine(Expr().ToString()); }
string abc = "Do you wish to record time today?"; DialogResult result = MessageBox.Show(abc, "Confirmation", MessageBoxButtons.YesNo);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)