Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    ASP




Name Redefined


How would I remove a varable so i can redefine it. I just get an error: "Name redefined"

<%
Dim MyVar
MyVar="Hello"
Response.Write(MyVar)
[REMOVE VARABLE SO I CAN DEFINE IT AGAIN]
Dim MyVar
MyVar="Hello Again"
Response.Write(MyVar)
%>




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Name Redefined
i m not sure why this ISN'T having a problem:

For x = 1 to 5
Dim y
Next

Shouldn't that fire a "Name Redefined" error the way this does:

For x = 1 to 5
Dim y
Next

Dim y

Name Redefined
I am experiencing a Name redefined error with an included file yet I cannot find where I am defining the name more than once. I even changed the name to "qwertyuiop" and am still getting the error. If I comment out the Dim statement the page loads fine but I need it to handle instances where Option Explicit is used.


Copyright © 2005-08 www.BigResource.com, All rights reserved