We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Classes in external files
Page Index Toggle Pages: 1
Classes in external files (Read 371 times)
Classes in external files
Aug 21st, 2006, 2:23pm
 
Bit of a newbie question I'm afraid.  I've got a class in my program, and although the program is pretty short, the class has a ton of code.

So, what I'd like to do is have the class in an external file, and somehow load it into my program.  Is this possible?  And how?

Thanks!
Re: Classes in external files
Reply #1 - Aug 21st, 2006, 6:54pm
 
Add a tab to your sketch, use the little arrow on the top-right of the editor, and move the class to that tab.

This will add a new pde to your sketch and will work the same as if all your code was in the same file.
Page Index Toggle Pages: 1