In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: Hi John, [quote="You"][3]What about using the LOAD and INC commands with conditional compiling (like PVK did) but [u]hide it under the hood[/u] and keep the template clean?[/3] [/quote]That has been tried. There is a thread ( [url=http://forums.parallax.com/forums/default.aspx?f=7&m=323893]http://forums.parallax.com/forums/default.aspx?f=7&m=323893[/url] ) in which I and others tried making libraries stand-alone (libraries include libraries they need) but that really messed up the list view with duplicate library code as comments. My approach ever since has been to use main compilation switches in the application file. It does make the application file less readable (mainly because conditional compilation statements have the same color as comments) but it does allow to include/exclude code by simply enabling/disabling conditional compile switches from the application file (no need to alter libraries) and it keeps the list view clean in that code appears only once (as code or as comment) and in the order it is included in the application file. I don't see how we can improve or hide more, unless SXB becomes a multi-pass compiler, and I don't think that will ever happen. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=352776#m352783 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)