Wednesday, March 2, 2011

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 :=
    'Your name: ',
    'no name' );
Listing #1 : Delphi code. Download inputbox (0.19 KB).

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Design by Kang Iwan K-sev | Thank's for your visit To My Site - Ridwan Mulyana | Cibeureum