Autor Beitrag
Lunzen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Do 15.05.03 14:34 
HIHO LEUTZ,

ich habe ein problem. und zwar will ich einen timer schreiben, weiss nur total nicht wie. dieser timer soll nach einer gewissen zeit einen bestimmt code, den ich hier vorliegen habe ausführen. die zeit soll über eine textfeld eingegeben werden. ich wäre euch um eure mithilfe sehr dankbar ...

lunzen
Teutobod
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55



BeitragVerfasst: Do 15.05.03 15:02 
hallo!

hast du schon mal die timer - komponente ausprobiert?
Lunzen Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29



BeitragVerfasst: Do 15.05.03 15:05 
nö noch nicht wirklich, aber wie kann ich da denn im formular die zeit ändern?
Teutobod
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55



BeitragVerfasst: Do 15.05.03 15:20 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.Button1Click(Sender: TObject);
begin
  timer1.Interval := 2000// Zeit einstellen ( 2 sec )
end;
Teutobod
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55



BeitragVerfasst: Do 15.05.03 15:29 
sorry, du wolltest es ja über ein textfeld eingeben
ausblenden Delphi-Quelltext
1:
timer1.interval := strtoint(edit1.text);					


besser wäre es aber sicher das ganze mit z.B. einer SpinEdit - Komponente zu machen, um auszuschließen, daß jemand was falschen reinschreibt.
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Do 15.05.03 16:35 
Teutobod hat folgendes geschrieben:
besser wäre es aber sicher das ganze mit z.B. einer SpinEdit - Komponente zu machen, um auszuschließen, daß jemand was falschen reinschreibt.


Dieses Problem kann man hiermit lösen.

_________________
If accidentally read, induce vomitting.
Teutobod
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55



BeitragVerfasst: Do 15.05.03 16:46 
Zitat:
Dieses Problem kann man hiermit lösen.


Ist schon klar, aber was spricht dagegen gleich ein spinedit zu verwenden?
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Do 15.05.03 16:50 
Lunzen hat folgendes geschrieben:
[...] die zeit soll über eine textfeld eingegeben werden


Das. :wink:

_________________
If accidentally read, induce vomitting.
Teutobod
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 55



BeitragVerfasst: Do 15.05.03 16:55 
Nachdem er nicht mal weiß wie man bei einem timer das zeitintervall verstellt. :roll:
dachte halt gleich einen schritt weiter :D