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
XLSReadWriteII5. TXLSTokenizer.DoName bug in russian charset
Re: XLSReadWriteII5. TXLSTokenizer.DoName bug in russian charset
Hello
I can't find the code you are talking about. Is it supposed to be in the last version of XLSReadWriteII 5?
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
Re: XLSReadWriteII5. TXLSTokenizer.DoName bug in russian charset
I Downloaded last XLSReadWriteII 5 for XE4 from http://www.axolot.com/components/f_downloadreg.htm.
File BIFF_EncodeFormulaII5.pas
File BIFF_EncodeFormulaII5.pas
Re: XLSReadWriteII5. TXLSTokenizer.DoName bug in russian charset
Hello
I found it now. Will fix this in the next update.
I found it now. Will fix this in the next update.
Lars Arvidsson, Axolot Data