📄 mainbgkfrm.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 8685
ClientLeft = 60
ClientTop = 345
ClientWidth = 6795
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 8685
ScaleWidth = 6795
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame4
Height = 1050
Left = 135
TabIndex = 22
Top = 5625
Width = 6585
Begin VB.CommandButton Command6
Caption = "PDU_SMS"
Height = 330
Left = 5265
TabIndex = 26
Top = 630
Width = 1050
End
Begin VB.CommandButton Command5
Caption = "TO ASCALL"
Height = 330
Left = 5220
TabIndex = 25
Top = 225
Width = 1095
End
Begin VB.TextBox Text11
Height = 330
Left = 135
Locked = -1 'True
TabIndex = 24
Top = 630
Width = 5055
End
Begin VB.TextBox Text10
Height = 330
Left = 135
TabIndex = 23
Top = 225
Width = 5055
End
End
Begin VB.Frame Frame3
Height = 1335
Left = 120
TabIndex = 14
Top = 4320
Width = 6615
Begin VB.TextBox Text9
BackColor = &H8000000F&
Height = 375
Left = 4995
Locked = -1 'True
TabIndex = 18
Top = 855
Width = 1410
End
Begin VB.TextBox Text8
BackColor = &H8000000F&
Height = 375
Left = 2925
Locked = -1 'True
TabIndex = 17
Top = 855
Width = 1335
End
Begin VB.CommandButton Command3
Caption = "计算校验和"
Height = 375
Left = 240
TabIndex = 16
Top = 840
Width = 1695
End
Begin VB.TextBox Text7
Height = 375
Left = 120
TabIndex = 15
Text = "Text7"
Top = 240
Width = 6375
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "累加和"
Height = 180
Left = 2205
TabIndex = 20
Top = 990
Width = 540
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "异或"
Height = 180
Left = 4545
TabIndex = 19
Top = 990
Width = 360
End
End
Begin VB.Frame Frame2
Height = 1695
Left = 120
TabIndex = 10
Top = 2640
Width = 6615
Begin VB.CommandButton Command4
Caption = "unicode count--"
Height = 330
Left = 3285
TabIndex = 21
Top = 765
Width = 1770
End
Begin VB.TextBox Text6
BackColor = &H8000000F&
Height = 375
Left = 120
Locked = -1 'True
TabIndex = 13
Text = "Text6"
Top = 1200
Width = 6255
End
Begin VB.CommandButton Command2
Caption = "unicode to 字符"
Height = 375
Left = 135
TabIndex = 12
Top = 720
Width = 2175
End
Begin VB.TextBox Text5
Height = 375
Left = 120
TabIndex = 11
Text = "Text5"
Top = 240
Width = 6255
End
End
Begin VB.Frame Frame1
Height = 2655
Left = 120
TabIndex = 0
Top = 0
Width = 6615
Begin VB.CommandButton Command7
Caption = "asc to bg"
Height = 375
Left = 4410
TabIndex = 27
Top = 720
Width = 1140
End
Begin VB.TextBox Text1
Height = 375
Left = 960
TabIndex = 5
Text = "Text1"
Top = 240
Width = 5535
End
Begin VB.CommandButton Command1
Caption = "转换"
Height = 375
Left = 2040
TabIndex = 4
Top = 720
Width = 1695
End
Begin VB.TextBox Text2
BackColor = &H8000000F&
Height = 375
Left = 960
Locked = -1 'True
TabIndex = 3
Text = "Text2"
Top = 1200
Width = 5535
End
Begin VB.TextBox Text3
BackColor = &H8000000F&
Height = 375
Left = 960
Locked = -1 'True
TabIndex = 2
Text = "Text3"
Top = 1680
Width = 5535
End
Begin VB.TextBox Text4
BackColor = &H8000000F&
Height = 375
Left = 960
Locked = -1 'True
TabIndex = 1
Text = "Text4"
Top = 2160
Width = 5535
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "inter"
Height = 180
Left = 120
TabIndex = 9
Top = 1320
Width = 450
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "char"
Height = 180
Left = 120
TabIndex = 8
Top = 1800
Width = 360
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "字符"
Height = 180
Left = 120
TabIndex = 7
Top = 360
Width = 360
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "unicode"
Height = 180
Left = 120
TabIndex = 6
Top = 2280
Width = 630
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim unicodeClassM As New unicodeClass
Private Sub Command1_Click()
Dim strt1 As String, strt2 As String, i As Long, a1 As String, a2 As String
Dim Arr() As Byte
Arr = StrConv(Text1, vbFromUnicode)
strt1 = ""
strt2 = ""
For i = 0 To UBound(Arr)
If Arr(i) < 128 Then
a1 = CStr(Hex(Arr(i)))
If Len(a1) = 1 Then a1 = "0" & a1
strt1 = strt1 & "0x00" & a1 & ","
strt2 = strt2 & "0x" & a1 & ","
Else
a1 = CStr(Hex(Arr(i)))
If Len(a1) = 1 Then a1 = "0" & a1
a2 = CStr(Hex(Arr(i + 1)))
If Len(a2) = 1 Then a2 = "0" & a2
strt1 = strt1 & "0x" & a1 & a2 & ","
strt2 = strt2 & "0x" & a1 & ",0x" & a2 & ","
i = i + 1
End If
Next
Text2 = strt1
Text3 = strt2
Text4 = unicodeClassM.UnicodeFun(Text1, "string", 1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -