
-----------------------------------
copthesaint
Wed Oct 07, 2009 12:00 pm

Error with my instance class.
-----------------------------------
I keep getting the errors int/double cannot be reffered.
Any help? The files are commented, and any other you find will be great to share :)

-----------------------------------
Vermette
Wed Oct 07, 2009 12:13 pm

Re: Error with my instance class.
-----------------------------------
You're trying to call a method on a primitive due to a scope mismatch.  

public void setInt (String name,int value, int arrayPart){
         int 

Your intent here was to call the InstanceSetup value in your class attribute, but due to scoping rules, you're actually trying to make a method call on the method parameter value, which is a primitive.  Object-scope your method call with the this keyword:

public void setInt (String name,int value, int arrayPart){
         int 

But better yet, change the name of the parameter.

-----------------------------------
copthesaint
Fri Oct 09, 2009 2:06 pm

RE:Error with my instance class.
-----------------------------------
kk thanks Vermette
