Strange Thing is Happen In If Conditional

  • Thread starter Thread starter BillGatesFan
  • Start date Start date
B

BillGatesFan

I perform a Quck Watch inside of VS 2005 and it tells me that
Session("CurrentDB") is Nothing, but it still executes the next line.
Has the language changed or something? What am I doing wrong? It
should skip the second line.


If (Not Session("CurrentDB") Is Nothing) Then
lblCurrentDatabase.Text = Session("CurrentDB")
End If
 
If it executes the next line then the result of execution must not be
Nothing. Is a real value going into the label? If so then the Quck Watch is
misleading.
A
 
Back
Top