Posted: Wed Oct 10, 2007 7:00 pm Post subject: {Help} Timer Interval (Delphi)
Well iam trying to figure out how to change a timers interval by Edit1.Text
Well these are some codes i figured out but none help me change the timer's interval
Well this code changes the timer Interval to 10000
Code:
var
Interv: integer;
begin
Interv := 10000;
Timer1.Interval := Interv;
end;
Well this 1 finds out the interval for the timer and displays it in the edit1.text
Code:
begin
Edit1.Text:= IntToStr(Test.Interval);
end;
What i want to do is change the interval value by a Edit1 to w/e is typed in Edit1.Text well if any1 could come up with a code that can change the interval will get a rep... thanks..
For example (Doesn't work "error")
var
Interv: integer;
begin
Interv := Edit1.text;
Timer1.Interval := Interv;
end; _________________
edit: not that I didn't see that it was a type problem (most errors are) but posters should post the exact message that the compiler spits out so they know how to fix errors themselves...
Last edited by appalsap on Wed Oct 10, 2007 9:03 pm; edited 1 time in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum