XLSReadWriteII 5 Delphi 5 sometimes mixes up the cell values

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
piro
Posts: 2
Joined: Fri May 22, 2015 7:50 am

XLSReadWriteII 5 Delphi 5 sometimes mixes up the cell values

Post by piro »

Hi,

I found the following problem in the XLSReadWriteII 5 Delphi 5 (or maybe every pre-XE) package:
- while writing text containing special characters (e.g. in CJK, Thai, Arabic etc. code pages) to XLS(X) files, the values of the cells will sometimes be mixed up.

I found that the problem is caused by using parameters of string instead of widestring in the methods of class TStringHash (in unit XLSUtils5). In Delphi XE version it results in a perfect behavior (since string represents an array of two-byte characters) but in earlier Delphi versions it will split the higher bytes of the characters and can produce the same hash codes for different cell values.

Could you check the issue mentioned above, please?

Thank you:

Attila Piros
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: XLSReadWriteII 5 Delphi 5 sometimes mixes up the cell values

Post by larsa »

Hello

Sorry, Delphi 5 is not officially supported. Issues that only exists when using D5 will not be fixed.
Lars Arvidsson, Axolot Data
Post Reply