New topic: 

RaiseEvent usage

<http://forums.realsoftware.com/viewtopic.php?t=47143>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        ehumail          Post subject: RaiseEvent usagePosted: Mon Mar 
04, 2013 3:20 am                         
Joined: Mon Feb 27, 2012 6:04 am
Posts: 3                Hi,

I have a subclass of a Serial class named SER. In the SER subclass I declared a 
Timer (tTimer) and a public method (Open) for the SER.
And I declared a tTimer_Action(Sender As Timer) method for the Timer.

So in the Open method I init:
tTimer = new Timer
tTimer.Period = 500
tTimer.Mode = 0
Addhandler tTimer.Action, AddressOf tTimer_Action

In addition I declared a TimerAction event in a SER subclass, like:

Sub tTimer_Action(Sender As Timer)

//do something...
Dim x As Integer = 0

RaiseEvent TimerAction

End Sub

My problem is the Raiseevent do not work. If I add a breakpoint inside the 
tTimer_Action method before the RaiseEvent, everything is OK BUT the 
TimerAction event won't called...

What is the problem? I missed something?
Thanks   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to