| 发表于:2008-02-22 18:11:511楼 得分:0 |
text1为pid text2为显示结果 command1为搜索按钮 另一个键我不知有什么用 将text2.multiline = true private sub command1_click() dim stext as string, skey as string s = text1: text2 = "" open "aaa.log" for input as #1 do while not eof(1) ' 检查文件尾。 line input #1, stext ' 读入一行数据。 if instr(1, stext, " 用户id:" & s & " ") > 0 then text2 = text2 & stext & vbcrlf ' 在text2中显示。 loop close #1 你参考,在if中修改text2的取值,就可以了. 不会再问. | | |
|