Dim s1, s2 As String
Dim e As Integer
s1 = Form1.RichTextBox1.Text
s2 = InputBox("输入要查找的数字")
e = InStr(s1, s2)
Form1.RichTextBox1.SelStart = e - 1
Form1.RichTextBox1.SelLength = Len(s2)
这是源代码有错的地方也帮忙看下
怎么实现查找下一个
...全文
1121打赏收藏
在richtextbox中怎么实现查找下一个?
Dim s1, s2 As String Dim e As Integer s1 = Form1.RichTextBox1.Text s2 = InputBox("输入要查找的数字") e = InStr(s1, s2) Form1.RichTextBox1.SelStart = e - 1 Form1.RichTextBox1.SelLength = Len(s2) 这是源代码有错的地方也帮忙看下 怎么实现查找下一个
Dim s1, s2 As String
Dim e As Integer
s1 = Form1.RichTextBox1.Text
s2 = InputBox("输入要查找的数字")
e = InStr(1,s1, s2,3)
Form1.RichTextBox1.SelStart = e - 1
Form1.RichTextBox1.SelLength = Len(s2)