[AGDev-newbies] Who you gonna call?

Mike Maslo mmaslo1964 at swbell.net
Sun May 7 18:55:59 BST 2006


List:

Help already. I have created this little program and when I try to run it I
get a error saying that the local variable is already in use in this scope.

I am trying to make the variable myVar have one number and after it assigns
and prints it out on the screen, I want to re assign it to a different
number.

What am I doing wrong??

Please help.

namespace Frustrated
{
    class Trusted
    {
        static void Main()
        {
            int myVar = 16;
            System.Console.WriteLine("initialized,  myVar: {0} ", 
                myVar);
            int myVar = 84;
            System.Console.WriteLine("next variable is: {0} " ,
            blew);
        }
    }
}

-----Original Message-----
From: agdev-newbies-bounces at lists.agdev.org
[mailto:agdev-newbies-bounces at lists.agdev.org] On Behalf Of Matthew T.
Atkinson
Sent: Sunday, May 07, 2006 11:22 AM
To: AGDev-newbies list
Subject: [AGDev-newbies] Who you gonna call?

Just a quickie... for tech support relating to this list, you ought to
contact support at agdev.org as that's the official AGDev support channel.

Please remember to check out the Wiki at http://www.agdev.org/ and
e-mail this list if you have any suggestions for it :-).

bye just now, best regards,


-- 
Matthew T. Atkinson <matthew at agrip.org.uk>

_______________________________________________
AGDev-newbies mailing list
AGDev-newbies at lists.agdev.org
http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies



More information about the AGDev-newbies mailing list