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 › values + Semantic Error: No accessible field
Page Index Toggle Pages: 1
values + Semantic Error: No accessible field (Read 318 times)
values + Semantic Error: No accessible field
Jun 8th, 2006, 11:09pm
 
please bear with me, i'm just starting to discover processing
here's a problem i've been recently seeing very often, here's the code:

Code:
void setup() {
size(600, 600, P3D);
translate(width/2, height/2);
float i ;
i = 0;
}

void draw() {
box(40);
rotateZ(i);
i = i + 1;
}

it gives me an error: C:/DOCUME~1/ADMINI~1.KEY/LOCALS~1/Temp/build46726.tmp/Temporary_8793_4388.java:1
1:7:11:7: Semantic Error: No accessible field named "i" was found in type "Temporary_8793_4388".

what do am i missing ?
Re: values + Semantic Error: No accessible field
Reply #1 - Jun 8th, 2006, 11:56pm
 
move float i ; outside void setup()
Page Index Toggle Pages: 1