📄 区位码.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 6090
ClientLeft = 60
ClientTop = 345
ClientWidth = 8850
LinkTopic = "Form1"
ScaleHeight = 6090
ScaleWidth = 8850
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text3
Enabled = 0 'False
Height = 4095
Left = 2640
MultiLine = -1 'True
TabIndex = 7
Top = 960
Width = 2175
End
Begin VB.CommandButton Command3
Caption = "清屏"
Height = 975
Left = 7560
TabIndex = 6
Top = 1320
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "去空格"
Height = 1215
Left = 7560
TabIndex = 5
Top = 2520
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "找汉字"
Height = 975
Left = 7560
TabIndex = 4
Top = 3960
Width = 1215
End
Begin VB.TextBox Text2
Height = 4095
Left = 5040
MultiLine = -1 'True
TabIndex = 1
Text = "区位码.frx":0000
Top = 960
Width = 2175
End
Begin VB.TextBox Text1
Height = 4095
Left = 120
MultiLine = -1 'True
TabIndex = 0
Text = "区位码.frx":0006
Top = 960
Width = 2295
End
Begin VB.Label Label2
Caption = "asc码"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 3
Top = 360
Width = 1455
End
Begin VB.Label Label1
Caption = "汉字"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5040
TabIndex = 2
Top = 360
Width = 1095
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim i As Integer
On Error GoTo error
Command2_Click
Text2.Text = ""
If Len(Text3.Text) >= 4 Then
For i = 1 To Len(Text3.Text) Step 4
Text2.Text = Text2.Text & Chr(Val("&H" & Mid(Text3.Text, i, 4)))
Next i
End If
error:
End Sub
Private Sub Command2_Click()
Dim i As Integer
Text3.Text = Text1.Text
For i = 1 To Len(Text3.Text)
If Mid(Text3.Text, i, 1) = " " Then
Text3.Text = Left(Text3.Text, i - 1) & Right(Text3.Text, Len(Text3.Text) - i)
i = 1
End If
Next i
End Sub
Private Sub Command3_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -