在文本文件中搜索语句 [英] search about statement in text file
本文介绍了在文本文件中搜索语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi for all
i希望通过命令按钮在文本文件中搜索指定的语句
如果我点击按钮并且程序找到此声明它会显示消息框
例如:
文件名是ssdd .txt
和在这个文件中写的声明欢迎来到vb。
i想要程序找到这个语句就显示消息框
如何做到这一点。
感谢所有
i希望通过命令按钮在文本文件中搜索指定的语句
如果我点击按钮并且程序找到此声明它会显示消息框
例如:
文件名是ssdd .txt
和在这个文件中写的声明欢迎来到vb。
i想要程序找到这个语句就显示消息框
如何做到这一点。
感谢所有
hi for all
i want to search about specified statement in text file via command button
if i click button and the program find this statement it show message box
for example :
the name of file is ssdd.txt
and the statement that write in this file is welcome to vb .
i want if the program find this statement it show message box
how ican do that .
thanks for all
i want to search about specified statement in text file via command button
if i click button and the program find this statement it show message box
for example :
the name of file is ssdd.txt
and the statement that write in this file is welcome to vb .
i want if the program find this statement it show message box
how ican do that .
thanks for all
推荐答案
试试函数中的这个示例(我没有安装VB来检查语法):
Try this sample in a function (I dont have VB installed to check the syntax):
展开 | 选择 | Wrap | 行号
dorinbogdan,我看到的唯一问题是你打开输出 - 应该是输入。
让我们希望文件不重要。 :)
dorinbogdan, the only problem I see is that you opened for Output - should have been Input.
Let''s hope the file wasn''t anything important. :)
你是对的。谢谢你的纠正。
You''re right. Thanks for correction.
这篇关于在文本文件中搜索语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文