📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form Form2
Caption = "Form2"
ClientHeight = 4185
ClientLeft = 60
ClientTop = 345
ClientWidth = 6570
LinkTopic = "Form2"
ScaleHeight = 4185
ScaleWidth = 6570
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command2
Caption = "保留有效位"
Height = 375
Left = 4560
TabIndex = 9
Top = 2280
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "Replace"
Height = 375
Left = 4560
TabIndex = 8
Top = 1560
Width = 1575
End
Begin VB.TextBox Text4
Height = 285
Left = 1440
TabIndex = 6
Text = "Text4"
Top = 3120
Width = 3615
End
Begin VB.TextBox Text3
Height = 285
Left = 1440
TabIndex = 5
Text = "Text3"
Top = 2400
Width = 975
End
Begin VB.TextBox Text2
Height = 285
Left = 1440
TabIndex = 3
Text = "Text2"
Top = 1680
Width = 975
End
Begin VB.TextBox Text1
Height = 375
Left = 1440
TabIndex = 0
Text = "Text1"
Top = 840
Width = 3495
End
Begin VB.Label Label4
Caption = "Target String"
Height = 255
Left = 1440
TabIndex = 7
Top = 2880
Width = 1575
End
Begin VB.Label Label3
Caption = "Target Character"
Height = 255
Left = 1440
TabIndex = 4
Top = 2160
Width = 1455
End
Begin VB.Label Label2
Caption = "Original Character"
Height = 255
Left = 1440
TabIndex = 2
Top = 1440
Width = 1575
End
Begin VB.Label Label1
Caption = "Original String"
Height = 255
Left = 1440
TabIndex = 1
Top = 600
Width = 1095
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Text4.Text = StringReplace(Text1.Text, Text2.Text, Text3.Text)
End Sub
Private Sub Command2_Click()
Text3.Text = Str(CSng(Text1.Text))
Text4.Text = KeepValueDigit(Text3.Text, Text2.Text)
End Sub
Private Sub Form_Load()
Text1.Text = "123,234,56789,asdfghj,end"
Text2.Text = ","
Text3.Text = "_"
Text4.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -