PDA

View Full Version : FormatDisplayValue in cCJGridColumn



Focus
10-Feb-2020, 11:50 AM
In appreciate FormatDisplayValue in cCJGridColumn is marked as Private but I notice I still returns a Boolean to indicate if the value is ANSI or OEM

Where it is used in DrawCell if the result is ANSI then it calls AnsiValueToVariant which Converts it to a wide UTF8 string

It all appears to be about handling an oddity with the euro symbol

It looks like this code is unchanged from previous revisions I'm just asking is it still correct/relevant or does it need a tweak

Harm Wibier
11-Feb-2020, 02:55 AM
This code does seem to be touched and likely works well with unicode, but it could use some cleaning up as these references to ANSI seem to be invalid now (AnsiValueToVariant is actually changed to convert from UTF-8 to variant).