Re: Declaring Variables
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Sun, 12 Mar 2006 08:43:22 -0000
Mark A. Sam <msam@xxxxxxxxxxxxxxxxx> wrote:
I am using Visual Web Developer 2005 Express. I want to declare a varible,
using Visual Basic as the language and can't get anywhere. For example
Public Test1 as String
I'll get en error saying to change Public to Dim. When I do, it will say
that Test1 is an unused local variable.
It sounds like you're putting that line of code inside a method, making
it a local variable. "Public" only makes sense for an instance or
shared variable.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- References:
- Declaring Variables
- From: Mark A. Sam
- Declaring Variables
- Prev by Date: Re: Admin abuse on this news group...
- Next by Date: Problems installing local help....
- Previous by thread: Re: Declaring Variables
- Next by thread: VS 2005 OneClick Deploy Database Problem
- Index(es):