Recent

Author Topic: Button repeat  (Read 2960 times)

calvinruka

  • New Member
  • *
  • Posts: 12
Button repeat
« on: January 19, 2011, 04:02:35 am »
procedure TForm1.Button1Click(Sender: TObject);
begin
HandleOp ('1');
result.caption := '1';

This code can only  display '1' once i press 1 a time but when i press 2 or more times, it still reamain display 1 only. I wan make it the code can display more 1 whenever i press howmany times.
Example: i hit 1, display 1
             i hit 3 time 1, display 111

but my code cant.... any clue?

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1946
Re: Button repeat
« Reply #1 on: January 19, 2011, 10:28:07 am »
result.caption := result.caption+'1';

;-)

 

TinyPortal © 2005-2018