bobmpalmer
Programmer
An odd thing occured in our code with the dtpicker. Dave Summers replied to a thread that I refered to when using this control to set Mindate/maxdate properties.
thread1254-824667
The control and code has existed in a release of our software for 5 months now and is being used on 30+ sites daily with no error.
The specific code lines are, as in daves post in the above thread:-
Except that our values are date()-180 and date()
Yesterday 25/03/2005 I recieved calls from clients with an Ole dispatch error saying min value was greater than max value!!!
The fix was to reverse the two lines e.g.
So that the max value was set first.
In hindsight this appeared obvious except, does anyone have any idea why the original worked fine UNTIL 25/03/2005 and then produced the error()? what has changed so that on instanciating the object the two values are evaluated and create the error? One client used the module on the morning of the 25th with no error but on the afternoon when running the module the error occured.
App is written in VFP7. Any pointers suggestions would be appreciated ta!
Bob Palmer
The most common solution is H2O!
thread1254-824667
The control and code has existed in a release of our software for 5 months now and is being used on 30+ sites daily with no error.
The specific code lines are, as in daves post in the above thread:-
Code:
MyForm.oleDTPicker.object.MinDate = Date() - 180
MyForm.oleDTPicker.object.MaxDate = Date()
Yesterday 25/03/2005 I recieved calls from clients with an Ole dispatch error saying min value was greater than max value!!!
The fix was to reverse the two lines e.g.
Code:
MyForm.oleDTPicker.object.MaxDate = Date()
MyForm.oleDTPicker.object.MinDate = Date() -180
In hindsight this appeared obvious except, does anyone have any idea why the original worked fine UNTIL 25/03/2005 and then produced the error()? what has changed so that on instanciating the object the two values are evaluated and create the error? One client used the module on the morning of the 25th with no error but on the afternoon when running the module the error occured.
App is written in VFP7. Any pointers suggestions would be appreciated ta!
Bob Palmer
The most common solution is H2O!