On Tue, 08 Apr 2014, Franz wrote:
Hi,
> Hello,
> I have a dbf index on "descend(dtos(DATAX))".
> It works fine if I don't set codepage, if I set codepage to ITWIN order is
> not correct.
DESCEND() function is designed to operate on binary (BYTE) sorting
and gives reverted collation order only for codepages which use
such collation.
> Why descend is affected by codepage in this case ? dtos return a 10 char
> string with only number.
Because DESCEND() converts numbers to characters which have
special order in CP you are using. Look at this list archive
for some easy to create custom DESCEND() replacements which
can be used with non accented Latin based languages like
Lithuanian or Polish ones.
best regards,
Przemek