XLSReadWriteII5. TXLSTokenizer.DoName bug in russian charset

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
Moisha
Posts: 18
Joined: Wed Apr 06, 2016 1:00 pm

XLSReadWriteII5. TXLSTokenizer.DoName bug in russian charset

Post by Moisha »

hi. I use XLSReadWriteII5 and russian charset.
The problem is in this construction:
while (Result <= FLen) and AnsiChar(FValue[Result]) in [AnsiChar(FormatSettings.ListSeparator),AnsiChar('\')......]) do

Converting multibyte char to AnsiChar work incorrect, but multibyte string to ansi string works just fine.
So it willbe good to rewrite this code:
while (Result <= FLen) and not (AnsiString(FValue)[Result] in [AnsiChar(FormatSettings.ListSeparator),AnsiChar('\') ...] do
And even more correctly:
while (Result <= FLen) and not (CharInSet(FValue[Result] in [FormatSettings.ListSeparator, '\'...] do

function TXLSTokenizer.DoQuotedName and many others has the same error.

Hope this will be fixed in next revisions.
Regards
Anton
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: XLSReadWriteII5. TXLSTokenizer.DoName bug in russian charset

Post by larsa »

Hello

I can't find the code you are talking about. Is it supposed to be in the last version of XLSReadWriteII 5?
Lars Arvidsson, Axolot Data
Moisha
Posts: 18
Joined: Wed Apr 06, 2016 1:00 pm

Re: XLSReadWriteII5. TXLSTokenizer.DoName bug in russian charset

Post by Moisha »

I Downloaded last XLSReadWriteII 5 for XE4 from http://www.axolot.com/components/f_downloadreg.htm.
File BIFF_EncodeFormulaII5.pas
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: XLSReadWriteII5. TXLSTokenizer.DoName bug in russian charset

Post by larsa »

Hello

I found it now. Will fix this in the next update.
Lars Arvidsson, Axolot Data
Post Reply