Mega Code Archive

 
Categories / Delphi / Forms
 

An easy way to get user input

When you don't feel like creating a Form just to get a simple input from your users, try using the "InputBox()" function. For example, if you need the user to type in a new name and store it in a string variable named "strPerson:" strPerson := InputBox('Input', 'Your name: ', 'Peter' );