Hi Mark, and thanks for your reply.
Yes, trying to get d2 to be 1 day ahead of d1 (or any number of
days). But the example you gave, "d2.TotalSeconds = d1.TotalSeconds",
that would make both dates the same ... right? I've tried
"d2.TotalSeconds = d1.TotalSeconds+86200" and that didn't work
either. I mean, it did but d1 also changed.
So if my 2 dates reference the same object, how do I go about getting
my hands on 2 distinct date objects? I need one that is fixed (my
reference date) and another that I can manipulate.
-Richard
On Oct 13, 2006, at 8:56 PM, Mark Lubratt wrote:
Richard,
If I understand your question, you're trying to get d2 to be 1 day
later than d1. Correct?
d2 and d1 are references to the date object. Thus, when you do
d2=d1, you're assigning the reference d2 to reference the same
object as d1. Thus, d1 and d2 both reference the same object.
I think what you want is:
d2.TotalSeconds = d1.TotalSeconds
HTH!
Mark
On Oct 13, 2006, at 7:45 PM, Richard wrote:
I have d1 declared as a global date. It's been "new"ed when the
window opens.
In a pushbutton I have the following code:
Dim d2 As New Date
d2 = d1
d2.day = d2.day+1
EF1.text = d1.ShortDate
EF2.text = d2.ShortDate
Every time the pushbutton is pushed, both edit fields show an
incrementing date, and the same date.
What am I not understanding about dates?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>