In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: John R, You're missing the point of the templates. What you are describing is more like library sub-routines. If you want that, then set up your own set of "include" files that handle just what you're suggesting. That way, all you need to do is add: [code]include buttons.sx[/code] whnever you want to add your code for accessing buttons. Personally, I doubt that the work involved in setting something like this up would ever really pay off unless you always use the same I/O line in the same way on every project. The point of the template feature is to allow the user to have a standard file that comes up whenever they start a new project that [i]can be used for any project they work on[/i]. This means the won't have to type in all the device directives, etc that are [b]common to all projects[/b]. If you write a program to access buttons, then it's either a program or a code example, but it's not a template. [list]Thanks, PeterM[/list] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=98661#m98800 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)