Dim codate As String
Dim codate As String
Dim a As Long,a1 As Long
Filename = App.Path & "\" + aPatch
Open Filename For Binary As #1 '以二进制方式打开文件
Text1.Text = StrConv(InputB(LOF(1), #1), vbUnicode)
codate = StrConv(Text1.Text, vbUpperCase) '转换大写字母
a1 = Len(codate)
codatea = ""
For a = 1 To a1
codatea = Trim(codatea) & Trim(Mid(codate, a, 1)) '清除空字符//这里出问题
Next a
exit1:
Close #1 '关闭文件
'Unload Me '退出程序