Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
20
Task/User-input-Graphical/Delphi/user-input-graphical.pas
Normal file
20
Task/User-input-Graphical/Delphi/user-input-graphical.pas
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
program UserInputGraphical;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
|
||||
uses SysUtils, Dialogs;
|
||||
|
||||
var
|
||||
s: string;
|
||||
lStringValue: string;
|
||||
lIntegerValue: Integer;
|
||||
begin
|
||||
lStringValue := InputBox('User input/Graphical', 'Enter a string', '');
|
||||
|
||||
repeat
|
||||
s := InputBox('User input/Graphical', 'Enter the number 75000', '75000');
|
||||
lIntegerValue := StrToIntDef(s, 0);
|
||||
if lIntegerValue <> 75000 then
|
||||
ShowMessage('Invalid entry: ' + s);
|
||||
until lIntegerValue = 75000;
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue