S Startup Active Member Licensed User Longtime User Oct 21, 2014 #1 The Beep only sounds the second time I press the button. Not the first time or the third or fourth or any other time?? Here's the code Sub Button1_Click Dim b As Beeper b.Initialize(300, 900) b.Beep End Sub
The Beep only sounds the second time I press the button. Not the first time or the third or fourth or any other time?? Here's the code Sub Button1_Click Dim b As Beeper b.Initialize(300, 900) b.Beep End Sub
JTmartins Active Member Licensed User Longtime User Oct 21, 2014 #2 tryed it in the emulator..works OK here Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Oct 22, 2014 #3 Try to reuse the same object instead of creating a new Beeper each time. Upvote 0
S Startup Active Member Licensed User Longtime User Oct 22, 2014 #4 Erel said: Try to reuse the same object instead of creating a new Beeper each time. Click to expand... Works now. Thanks!! Upvote 0
Erel said: Try to reuse the same object instead of creating a new Beeper each time. Click to expand... Works now. Thanks!!