3

I upgraded one project from XE to XE2 and I noticed that DateToStr doesn't work exactly as before.

If I try to covert a null date to str it gives "Invalid floating point operation". While this was not there in XE.

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

UnDiUdin
  • 14,924
  • 39
  • 151
  • 249

1 Answers1

1

After investigating I realized that this design choice made by Embarcadero in XE2 will affect a lot of old code. Wherever possible I replaced DateTimeToStr or I added checks for NULL dates before trying to convert to string.

Also DevExpress have some problems with their components because of this issue.

UnDiUdin
  • 14,924
  • 39
  • 151
  • 249