New topic: 

create timer in code

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

         Page 1 of 1
   [ 3 posts ]                 Previous topic | Next topic          Author  
Message        pbart          Post subject: create timer in codePosted: Thu Jul 
08, 2010 1:18 am                                 
Joined: Sat Oct 10, 2009 6:40 am
Posts: 142                Hi
I know that I can create a timer with the following code:

Code:Dim tim As NEW Timer

But cant find in the LR where I add code to the Action event of the new timer.  
    
_________________
Regards
Paul
Windows 7 32bit
RB 2010.2  
                             Top                 brisance          Post 
subject: Re: create timer in codePosted: Thu Jul 08, 2010 1:43 am               
          
Joined: Tue Oct 06, 2009 2:38 am
Posts: 300                You need to create a subclass of Timer, then 
instantiate that in code. i.e. create a class in your project, give it a name, 
for the Super property, use "Timer". Double-click on it and there's your Action 
event. Put all your code in it and then instantiate it by calling for example
Code:dim myTimer As New Timer_Specialwhere Timer_Special is the name of the 
subclass you created above.      
_________________
Mike Ash: Getting Answers
  
                             Top                 pbart          Post subject: 
Re: create timer in codePosted: Thu Jul 08, 2010 1:58 am                        
         
Joined: Sat Oct 10, 2009 6:40 am
Posts: 142                Thanks for the reply,

worked perfectly      
_________________
Regards
Paul
Windows 7 32bit
RB 2010.2  
                             Top            Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 3 posts ]      
-- 
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