add one every timePosted by steve on July 21, 2004 at 23:39:49: Hello. What I need to do is have Label3.Caption go up by one every time the timer happens. Im not sure what the formula would be. The default is 0. I need it to go to 1 on the timer. Next timer I need it to go to 2., etc etc. I'm having a problem because I can't get it to work because the string and integers dont work with each other. I tried inttostr but it didn't work. I want i to equal Label1.Caption then add one to itself on the timer. The i := i + 1 is wrong. What to replace? var i: integer; begin i := i + 1 ; Label3.Caption := InttoStr(i); end; Related Articles and Replies
|