Thursday, December 23, 2010

Re: [android-developers] Beginner type question on scope

On Wed, Dec 22, 2010 at 4:15 PM, Eric <webcemeteries@gmail.com> wrote:
My question is this.  The variable score seems to be out of scope in the onclick function.

It is - very much so.
 
In fact, it will not compile and gives me an error

That would be expected.
 
but the instructor ran it no problem...and it seemed to me that we had the same code.

Any Thoughts?

It seems to me you did not have the same code, in that case.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment