Private Function GetText(strRsc As String, strExclude As String) As String Dim pos As Integer Dim strDes As String Dim i As Integer Dim strChar As String * 1
For i = 1 To Len(strRsc) strChar = Mid(strRsc, i, 1) If InStr(strExclude, strChar) = 0 Then strDes = strDes & strChar End If Next
GetText = strDes End Function'GetText Text1.Text,"@#$%^&*123"
Dim pos As Integer
Dim strDes As String
Dim i As Integer
Dim strChar As String * 1
For i = 1 To Len(strRsc)
strChar = Mid(strRsc, i, 1)
If InStr(strExclude, strChar) = 0 Then
strDes = strDes & strChar
End If
Next
GetText = strDes
End Function'GetText Text1.Text,"@#$%^&*123"
VB代码计算器 3.7.4 欢迎下载试用下载地址:
华军软件 http://www.onlinedown.net/soft/7545.htm