New topic: Optional Parameter Check
<http://forums.realsoftware.com/viewtopic.php?t=47067> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message neonash7777 Post subject: Optional Parameter CheckPosted: Mon Feb 25, 2013 2:05 pm Joined: Mon Nov 29, 2010 7:01 pm Posts: 401 Is there a way to tell if an optional parameter was passed or not? I have a method that I want an optional boolean passed to it. I need to be able to tell if a boolean wasn't passed, so I tried doing optional b as boolean = nil But this doesn't work as I can't pass a Nil when it expects a boolean. Do i have to create an overloaded method to accomplish this, or is there a way to tell if the optional parameter was given? 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]
