What is the code in adding numbers in Lazarus(TForm.addclick)?

0 votes
asked by about Lazarus
edited by

What is the code in adding numbers in Lazarus(TForm.addclick)?

1 Answer

0 votes
No avatar answered by (193k points)

TForm.addclick procedure is usually attributed to buttons. You will need this when you are creating buttons inside Lazarus.

The same code should look like this:

procedure TForm.AddClick(Sender: TObject);
begin
  IF InputQuery('Input-Add','File: ',Value) Then
  Begin
       IF Value<>'' Then ListBox1.Items.Add(Value);
  End;

end; 

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...