John Austin
2006-09-04 10:43:01 UTC
In my VB6 app,I get occasional problems where two date variables show the
same date and time, show the same Cdbl() values and yet go through Greater
Than logic in the program. Whilst this is probably due to floating point
issues it is a big problem in my app. For example, this is from the debug
window:
? Dg.ToTime > Eg.SignOff;Dg.ToTime ; Eg.SignOff; cdbl(Dg.ToTime);cdbl(
Eg.SignOff )
True 04/09/2006 17:13:00 04/09/2006 17:13:00 38964.7173611111
38964.7173611111
I really need an efficient work around to this problem!
Thanks
same date and time, show the same Cdbl() values and yet go through Greater
Than logic in the program. Whilst this is probably due to floating point
issues it is a big problem in my app. For example, this is from the debug
window:
? Dg.ToTime > Eg.SignOff;Dg.ToTime ; Eg.SignOff; cdbl(Dg.ToTime);cdbl(
Eg.SignOff )
True 04/09/2006 17:13:00 04/09/2006 17:13:00 38964.7173611111
38964.7173611111
I really need an efficient work around to this problem!
Thanks
--
John Austin
John Austin