"Mark A. Sam" <ms**@Plan-It-Earth.Net> wrote in message
news:eJ**************@TK2MSFTNGP10.phx.gbl...
Hello,
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.
Thanks for any help.
God Bless,
Mark A. Sam
Sounds like you are trying to declare a local variable, thus Public is not
an option.
You are also declaring a reference type (String), thus your declaration:
Dim Test1 as String
creates a String object variable that references nothing, hence the second
error.
Try something like this:
Dim xx As New String("THIS IS THE STRING")