Autor Beitrag
Christoph Englmann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Fr 02.12.05 16:14 
hallo,

hab nen timer, der ganz normal durchlauft, wenn ich enabled :=true setze...

wenn ich aber zur laufzeit den Timer auf true setzen will, dann klappt es nicht, spricht der timer springt nicht an:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
          if NACHRICHT_ID=0 then
          begin
            DirektversorgungLaufblattAnpassen(ScrollboxDV, Anord.fieldbyName('STATUS').AsString);
            exit;
          end
          else
          begin
            //Kennzeichnung des Auftrags entsprechend in der Tabelle DIREKTVERSORGUNG
            DIREKTVERSORGUNG.Edit;
            DIREKTVERSORGUNG.FieldByName('DV_STATUS').AsString := 'in_passiv';
            DIREKTVERSORGUNG.FieldByName('NACHRICHT_ID').AsInteger := Nachricht_ID;
            DIREKTVERSORGUNG.Post;
            //Einschalten der Timer
            TimerVerlauf.Enabled := true;
            TimerKontrollePassiv.Enabled := true;
          end;



wie gesagt, keiner der beiden Timer springt an (IF-Abfrage läuft natürlich über die enabled Befehle der Timer drüber)....

hilfe....danke
mexx
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Fr 02.12.05 16:19 
Bist Du Dir sicher, dass der IF-Zweig auch angesprochen wird? Enable:= true ist ja eindeutig.

Kannst Du mehr source posten?
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Fr 02.12.05 16:31 
hallo,

danke,


ja bin mir sicher, hab extra nen stoppunkt gesetzt...
mehr code könnte ich natürlich posten, weiss aber ehrlich gesagt net, was das bringen soll bzw. was ich genau noch posten soll...

christoph
mexx
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Fr 02.12.05 16:35 
Kontrolliere noch mal, ob der Intervall des Timers richtig ist. Und überprüfe, ob Du nicht ein Ereigniss hast, welches den Timer anspricht.

Benutze die Suche und suche nach den Namen des Timers, vielleicht hast Du mal an anderen Stellen etwas ausprobieren wollen und vergessen zu löschen.
Christoph Englmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Fr 02.12.05 16:41 
hallo sorry... sche****...
hab mittlerweile gemerkt, dass danach ja noch ein ereignis mit timer.enabled=false ausgelöst wird...

tut mir leid, sollte heut wohl besser feierabend machen...