Autor Beitrag
Mubbel
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Di 18.02.03 19:34 
Hallo.
Hab' mal ne Frage und hoffe mal, dass hier jemand ne Antwort drauf weiss.Hab auch schon selber gesucht aber nix passendes gefunden. Aber nun zur Sache:
Ich will, dass mein Programm zu einer bestimmten Uhrzeit einen Prozess beginnt und ihn zu einer bestimmten Uhrzeit auch wieder stoppt. Wie mach ich das?

Schon mal danke im voraus...

Niels :D
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Di 18.02.03 19:50 
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
var starttime, endtime, akttime: string;
begin
starttime := '18:50:30';
endtime := '18:50:40';
akttime := timetostr(now);
if akttime = starttime then
begin
//Procedure beim Starten    z.B.:  timer1.enabled := true;
end
else if akttime = endtime then
begin
//Procedure beim Ende      z.B.:  timer1.enabled := false;
end;
Mubbel Threadstarter
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Di 18.02.03 20:04 
danke!
hätte ich eigentlich selber drauf kommen können. :oops:
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Di 18.02.03 20:13 
ja, hättest, bist aber net :wink: