Duplicate codes are always mandatory for input methods... So, in this step .. I have to analyze it .. Considering that duplicate codes cannot be avoided... We decided to analyze and optimize only 10 or more duplicate codes .. It is more convenient to select less than 10.
Once analyzed, I had to say that Wang Yongmin was great... There are only 23 of the five-letter-heavy codes> 10, but there are as many as 495 in pinyin ..
Dim BM As String, OldBM As String
Dim CI As String, OldCI As String
Dim JS As Long
Dim n As Integer, fg As Integer
N = 1
Form5.Show
Form5.Label1. Caption = "the encoding is being analyzed ..."
Set rs = ADO. CreateRecordset ("SELECT * FROM YS_WN") 'OR YS_PY
While rs. EOF = False
Bm = Rs. Fields (0)
Ci = Rs. Fields (1)
If Bm = oldbm then
N = n + 1
Else
Open app. Path & "/wn_code.txt" for append as #1
If OldBM <> "" and n> 10 Then
Print #1, OldBM; ":"; n
End If
Close #1
N = 1
End If
OldBM = BM
OldCI = CI
JS = JS + 1: DoEvents
Form5.ProgressBar1. Value = (JS/rs. RecordCount) * 100
Rs. MoveNext
Wend
Form5.Hide
Exit Sub