Autor Beitrag
Jann1k
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 866
Erhaltene Danke: 43

Win 7
TurboDelphi, Visual Studio 2010
BeitragVerfasst: Mo 05.02.07 17:07 
Gibt es in Delphi einen Befehl der so ähnlich funktioniert wie

wait until mega1=true

bzw. mit dem man so etwas realisieren könnte? Das Programm soll an einer Stelle warten bis eine Variable den wert true besitzt, geht das in Delphi?
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Mo 05.02.07 17:09 
Einfach:
ausblenden Delphi-Quelltext
1:
2:
repeat
until mega1=true


(Was allerdings nich klappen wird, da dein Prog da hängt und mega1 nie true werden wird, weshalb du noch Application.ProcessMessages brauchst)

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mo 05.02.07 17:10 
Arbeite eher mit Ereignissen anstatt damit, eigene Warteschleifen zu bauen. Siehe auch hier:
www.delphi-library.de/topic_67969.html

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".