November 28, 2020, 02:28:42 AM

Author Topic: [bb] WaitTimer(timername) by Reaper [ 1+ years ago ]  (Read 596 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bb] WaitTimer(timername) by Reaper [ 1+ years ago ]
« on: June 29, 2017, 12:28:40 AM »
Title : WaitTimer(timername)
Author : Reaper
Posted : 1+ years ago

Description : Just found a major drawback with this function - It will work fine if you aren`t scanning for any events but if you are then any events that occur while the program is away in the waittimer function will be lost :/ .Works fine if you are just trying to get backward compatibility though.

Code :
Code: BlitzBasic
  1. Function WaitTimer(timer$)
  2.         Repeat
  3.         Select WaitEvent()
  4.         Case $803 : End
  5.         Case $4001
  6.                 Select EventSource()
  7.                 Case timer$
  8.                         Return
  9.                 End Select
  10.         End Select
  11.         Forever
  12. End Function


Comments : none...

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal