(C++) InputQuery
February 24, 2017 · View on GitHub
(C++) InputQuery
A VCL dialog asking for a value.
To use InputQuery , #include the header file dialogs.hpp.
String userInput = ""; const bool inputGiven = InputQuery( "Hello World", //The caption of the InputBox "What do you want me to say (click Cancel for no reply)?", //The question asked userInput); if (inputGiven==true) ShowMessage(userInput);
If the user clicks Cancel or Close, the InputQuery returns false, else it returns true and the input is given in userInput.