VB编程题目讲解

如题所述

a-1在这段代码里面应该是代表了查找到的匹配字符串的位置
Text3.SelStart
=
a
-
1
就是在Text3中选中该匹配的字符串的起始位置
Text3.SelLength
=
Len(Text2.Text)设置Text3中选中字符串的长度
Text3.SelText
=
Text2.Text
就是把Text2.Text内的字符替换为Text3在前面两句中标记好的字符串
温馨提示:答案为网友推荐,仅供参考
第1个回答  2019-05-12
Text3.SelStart
=
a
-
1这个是为了得到要搜索字符的位置
Text3.SelLength
=
Len(Text2.Text)
Text3.SelText
=
Text2.Text这个是替换字符
Option1.Value
=
True
如果这个条件成立的话就继续替换。循环便利替换所有的字符
相似回答