View Single Post
  #3   Spotlight this post!  
Unread 27-09-2010, 22:19
lusterlink's Avatar
lusterlink lusterlink is offline
Registered User
FRC #1160 (FireBird Robotics)
Team Role: Programmer
 
Join Date: Aug 2010
Rookie Year: 2009
Location: USA
Posts: 9
lusterlink is an unknown quantity at this point
Re: Access Classes from different file

Neal-

Quick question. Do you mean accessing the class or method outside the file? Because it seems your asking if you can access the method outside the file.

If you want to access the class, simply add the import to the top of the file.

If you want to access the method, you might have to look towards static methods.

P.S. I might be completely wrong, if so correct me.
buildmaster, I attempted to run your code... Its a no go, I think because method must be static.
__________________
Reply With Quote