New topic: calling events
<http://forums.realsoftware.com/viewtopic.php?t=33994> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message Chris Benton Post subject: calling eventsPosted: Fri May 28, 2010 4:52 am Joined: Thu Jul 30, 2009 6:30 am Posts: 9 What is the syntax for calling or triggering an event in RS? regards, Chris Benton Top thx2 Post subject: Re: calling eventsPosted: Fri May 28, 2010 5:53 am Joined: Sat Nov 24, 2007 11:40 am Posts: 243 http://docs.realsoftware.com/index.php/RaiseEvent Top timhare Post subject: Re: calling eventsPosted: Fri May 28, 2010 12:40 pm Joined: Fri Jan 06, 2006 3:21 pm Posts: 7831 Location: Portland, OR USA You call an event (from within the class definition only) just as you would a normal method. Events are protected and can only be called by code inside the class though. RaiseEvent is a way to disambiguate where you have a method and an event of the same name, or to make your code more readable; it is not required. 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]
