Mega Code Archive

 
Categories / Delphi / Examples
 

Getting user input the easy way

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 want to get user's name to a string variable named "strName" try the following code: strName := InputBox( 'Input', 'Your name: ', 'no name' );