D
DirectorDobek
I am using VB .net on an asp .net page
When executing this code:
Dim x As String = ""
x = Replace(x, "xxx", "yyy")
x = x.ToUpper()
I get "Object reference not set to an instance of an
object" error because the Replace() function returns
nothing. Acording to the documentation it should return a
Zero-length string ("")
Is it a bug? Any ideas?
When executing this code:
Dim x As String = ""
x = Replace(x, "xxx", "yyy")
x = x.ToUpper()
I get "Object reference not set to an instance of an
object" error because the Replace() function returns
nothing. Acording to the documentation it should return a
Zero-length string ("")
Is it a bug? Any ideas?