DateToStr and Delphi XE2

I upgraded one project from XE to XE2 and I noticed that it DateToStr

doesn't work the way it did before.

If I try to hide the empty date on str it gives "Invalid floating point operation". It wasn't in XE though.

Why is this difference? Are there similar actions for other functions? (I mean some function that in a similar case = converting a null value changes the behavior)


source to share

1 answer

After researching, I realized that this design done by Embarcadero in XE2 would affect a lot of old code. Whenever possible, I replaced DateTimeToStr

or I added checks for NULL

dates before trying to convert to string.

Also DevExpress has some issues with their components due to this issue.



All Articles