Value := InputBox('Test program', 'Please type your town', 'Cardiff') Ī dialog is displayed asking for the user city,ĭelphi Programming © Neil Moffatt. Shows a dialog allowing the user to select a fileĭisplay a string in a simple dialog with an OK buttonĭisplay formatted data in a simple dialog with an OK buttonĭisplay a string in a simple dialog at a given screen positionĭownload this web site as a Windows program.Įxample code : Keep asking the user for their city with a default Use to ask the user for a data value, where you can give a sensible default value, to save the user unnecessary typing.ĭisplay a dialog that asks for user text input If the user cancels the dialog, then the return value is the default string. If the user presses OK, the default or user entered data is stored in the return string, otherwise an empty string is returned. A Default value is displayed in the text box. to the one used by the Microsoft MaskedEdit control and by Microsoft Access. It asks the user to enter data in a text box on the dialog. The EditMask property allows you to specify an input mask for automatic. The InputBox function displays a simple dialog box with the given Caption and Prompt message. Delphi Basics : inputbox command Delphi Basicsĭisplay a dialog that asks for user text input, with defaultįunction inputbox( const Caption, Prompt, Default string):string
0 Comments
Leave a Reply. |