Question: In DELPHI, function IF...THEN...ELSE, how can I separate in time different instructions? After "then" I have a serie of instructions including one that ends as follows:\ntimer.interval := 30000;\nSo I would like to ad more instructions to continue after the time is elapsed.

Answer: You can add another IF...THEN...ELSE in the timer (double click the timer, or you can say in event Timer.OnTimer).\nLet's said by default (interval is 1000), you have a set of instruction in Timer. And after the interval is changed to 3000, you want the timer "do" something else.\nWell just do like this\nTimer.OnTimer\n  IF (Timer.Interval = 1000) THEN\n   {your instruction here}\n  ELSE IF (Timer.Interval = 3000) THEN\n   {your instruction here}\n  ELSE\n   {your instruction here};\nend;\nLike that. That way, the timer will do something different each time you change the interval. You can add more (ELSE IF... THEN) if you want more instruction for different intervals.
This question from the Yahoo Q&A forum is categorized in the topic: Computers & Internet