Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(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.

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict