Input Method: duplicate code analysis ~

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.