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 › import class question
Page Index Toggle Pages: 1
import class question (Read 546 times)
import class question
Mar 11th, 2009, 5:25pm
 
I have been working on a sketch that has a few classes,
how do I export these classes into their own file and then have my sketch refrence theses "external" classes? so I can use them normally, without them being in the sketch's .pde file?
thanks
Re: import class question
Reply #1 - Mar 11th, 2009, 6:28pm
 
Just make a .pde file (or several) in the same sketch folder as the main .pde file. Processing will detect them and display them in tabs. And when running, it will include them automatically.
Re: import class question
Reply #2 - Mar 11th, 2009, 6:47pm
 
how convenient,
mucho gracias PhiLho
Page Index Toggle Pages: 1