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>