473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Value different during debug mode

Consider the two code snippets below.

a) During development, if you hold your cursor over AKA.SomeDateTime in
Snippet 2, it will indicate a value of #1/1/1950# as expected.

b) If you run the code in debug mode (i.e. F5), and at the stop, hold
your cursor over AKA.SomeDateTime in Snippet 2, it will indicate a value of
Nothing.

Why is it indicating a value of nothing? Any ideas what is going on?

Thanks

Bob

Code snippet 1:

Friend Structure AKA

Friend Const SomeDateTime As DateTime = #1/1/1950#

End Structure ' AKA

Code snippet 2:

Stop

If Now.Date = AKA.SomeDateTime Then

Stop

End If
Nov 21 '05 #1
1 1105
Just a shot in the dark here but you could try changing your Friend
declarations to Public.

"Bob Day" wrote:
Consider the two code snippets below.

a) During development, if you hold your cursor over AKA.SomeDateTime in
Snippet 2, it will indicate a value of #1/1/1950# as expected.

b) If you run the code in debug mode (i.e. F5), and at the stop, hold
your cursor over AKA.SomeDateTime in Snippet 2, it will indicate a value of
Nothing.

Why is it indicating a value of nothing? Any ideas what is going on?

Thanks

Bob

Code snippet 1:

Friend Structure AKA

Friend Const SomeDateTime As DateTime = #1/1/1950#

End Structure ' AKA

Code snippet 2:

Stop

If Now.Date = AKA.SomeDateTime Then

Stop

End If

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: tornado | last post by:
Hi all, I am pretty new to PHP. I was reading PHP manual and trying out the example from 2nd chapter (A simple Tutorial). When i try to print the variable as given in the example it returns...
2
by: Scott Yost | last post by:
I reference a .NET DLL to import some of my custom types. I can build that DLL in debug or release mode, but I usually keep the debug one built so I can debug it. When I want to link to the release...
8
by: Peter van der Veen | last post by:
Hi I've something strange. There is a different when an error occurs in 2 differen project/solutions. In one project when a get an error the debugger stops at the line which causes the error...
1
by: Ryan | last post by:
Is there any way to view what data is populating my DataSet tables during debugging? Thanks, Ryan
2
by: Johann Schuler | last post by:
Let's say I have a Person class with a private int age member variable. I have a get and set accessor for the Age property. When I am running the code in debug mode, I would like to have a debug...
8
by: Bhagya | last post by:
I am doing client side validation in my page. The password field does not retain its value. Pls help
5
by: Tim Zych | last post by:
What factor would allow an unhandled exception to occur in a compiled project, versus no error for the same action during development? In other words, I have a project that, in development when I...
20
by: teddysnips | last post by:
Weird. I have taken over responsibility for a legacy application, Access 2k3, split FE/BE. The client has reported a problem and I'm investigating. I didn't write the application. The...
3
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.