
Originally Posted by
aniceking
I downloaded the best version of the RR, but the test still exist about this issue. Most of the Chinese name can be displayed properly, but still part of it will appear as garbage characters. The code I used in 2007 to compile a moment can be displayed properly in English and Chinese. This is done like this:
The ilist control, the use LenC this function instead of VB's Len function. If you can hope that RR can be a little change it into Chinese. Thank you very much.
Public Function LenC(s As String) As Integer
Dim N As Integer
LenC = 0
For N = 1 To Len(s)
If (AscW(Mid(s, N, 1)) > 256) Or (AscW(Mid(s, N, 1)) < 0) Then
LenC = LenC + 2
Else
LenC = LenC + 1
End If
Next N
End Function
Bookmarks