📄 string.bas
字号:
Attribute VB_Name = "Module1"
Public Function CheckString(ByVal sStr As String) As String
'Written by Richard Leonard spla@earthling.net
'this function keeps whatever the variable Do_This is set to
Dim i As Integer
Dim StrHolder As String
Dim TempHolder As String
Dim Do_This As String
Do_This = Form1.txtDoThis.Text
For i = 1 To Len(sStr)
TempHolder = Mid(sStr, i, 1)
If TempHolder Like Do_This Then
StrHolder = StrHolder & Mid(sStr, i, 1)
End If
Next i
sStr = StrHolder
CheckString = sStr
End Function
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -