To work with InputBox
Step 1
To work with InputBox, first, add the Button object in the form.
Step 2
Then, double click the Button and it will display a Code Explore window. Next, you need to enter the programming inside it.
Step 3
Program:
procedure TForm1.Button1Click(Sender: TObject);
begin
InputBox('Name','Please enter your name','|');
end;
end.
You can try to press the F9 to run the program to see the result.
No comments:
Post a Comment