(C++) VCL InputBox

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) VCL InputBox

 

A VCL dialog asking for a value.

 

To use InputBox , #include the header file dialogs.hpp.

 


const String userInput = InputBox(   "Hello World", //The caption of the InputBox   "What do you want me to say?", //The question asked   "Nothing"); //The default value if (userInput!="Nothing") ShowMessage(userInput);