Try this in legacy ASP
ASP
Dim x
x=""
Response.write(TypeName(x))
x=Replace(x,";","")
Response.write(TypeName(x))
...and you will still have an empty string
Try it in ASP.NET
ASP.NET
Dim x As String
x = ""
Response.Write(TypeName(x))
x = Replace(x, ";", "")
Response.Write(TypeName(x))
...and you will see that it has gone from a String to type Nothing.
How is this?
ASP
Dim x
x=""
Response.write(TypeName(x))
x=Replace(x,";","")
Response.write(TypeName(x))
...and you will still have an empty string
Try it in ASP.NET
ASP.NET
Dim x As String
x = ""
Response.Write(TypeName(x))
x = Replace(x, ";", "")
Response.Write(TypeName(x))
...and you will see that it has gone from a String to type Nothing.
How is this?