Hi,
I have the following code:
Const d As Date = #4/8/2004 11:00:00 AM#
Dim diff As Double
diff = d.Date.AddDays(1).Subtract(d).TotalSeconds
If I single-step through the code, select "d.Date" and use "quick watch", I
get the message "d.date is not declared or the module that contains it is
not loaded into the debug session". Of course same message when adding
d.Date to the watch window.
But: The code works as expected! If I change "Const" to "Dim", the problem
is gone, but I think there shouldn't be a difference. Little bug? (VS/VB
2003)

Signature
Armin
How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
Armin Zingler - 26 Apr 2004 16:50 GMT
> Hi,
>
[quoted text clipped - 14 lines]
> problem is gone, but I think there shouldn't be a difference. Little
> bug? (VS/VB 2003)
Any hints?

Signature
Armin
How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html