On Aug 12, 2006, at 11:03 AM, Robert Poland wrote:
Hi,
This function gives weird results. Is there something obvious that
I have done wrong? The results are shown in the comments.
// PeriodEnding.text is 8/12/06
Dim date1, date2, date3, date4, date5, date6, date7 As New Date
Don't do this as date2,3,4 etc will all refer to the same object
date1. Each date Dims must be done separately to be unique.
Dim date1 As Date
Dim date2 As Date
etc.
Terry
_______________________________________________
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>