New topic: Why does 2012R2.1 resolve to true #If TargetConsole
<http://forums.realsoftware.com/viewtopic.php?t=47009> Page 1 of 1 [ 5 posts ] Previous topic | Next topic Author Message tseyfarth Post subject: Why does 2012R2.1 resolve to true #If TargetConsolePosted: Wed Feb 20, 2013 4:47 pm Joined: Sat Dec 04, 2010 9:14 pm Posts: 825 Hello all, I just added some code that seems to be unexpectedly utilized by Web Edition #ElseIf TargetConsole Then I had expected Web to ignor this section since it is not a console app. Can anyone advise why it does this? Thanks Tim Top npalardy Post subject: Re: Why does 2012R2.1 resolve to true #If TargetConsolePosted: Wed Feb 20, 2013 7:08 pm Real Software Engineer Joined: Sat Dec 24, 2005 8:18 pm Posts: 7730 Location: Canada, Alberta, Near Red Deer Web apps are basically Console apps _________________ Norman Palardy (Real Software) ââââââââââââââââââââââââââââââââââââââââââââââââââ Real Studio Developer Conference - April 23 - 26, 2013 http://www.realsoftware.com/community/realworld.php Top tseyfarth Post subject: Re: Why does 2012R2.1 resolve to true #If TargetConsolePosted: Wed Feb 20, 2013 7:13 pm Joined: Sat Dec 04, 2010 9:14 pm Posts: 825 Hi nPalardy, Why then have the Compiler Directive Specifically for them? Makes no sense. Or can you elaborate? Top npalardy Post subject: Re: Why does 2012R2.1 resolve to true #If TargetConsolePosted: Wed Feb 20, 2013 7:20 pm Real Software Engineer Joined: Sat Dec 24, 2005 8:18 pm Posts: 7730 Location: Canada, Alberta, Near Red Deer Web apps ARE a subclass of ConsoleApp When you build for the web TargetConsole & TargetWeb are true When you build for a console app TargetConsole is true & TargetWeb is false So to restrict it to JUST console you need #if targetconsole and not targetweb _________________ Norman Palardy (Real Software) ââââââââââââââââââââââââââââââââââââââââââââââââââ Real Studio Developer Conference - April 23 - 26, 2013 http://www.realsoftware.com/community/realworld.php Top tseyfarth Post subject: Re: Why does 2012R2.1 resolve to true #If TargetConsolePosted: Wed Feb 20, 2013 9:37 pm Joined: Sat Dec 04, 2010 9:14 pm Posts: 825 Hi npalardy, I did not know that is how they are. Had no idea. Your solution is so simple I am embarrassed having not thought of it before. Thank you, Tim Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 5 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]
