Question:
visual basic multiple words searcher?
2010-07-30 10:29:57 UTC
Hello
Pleas i need the source of a windows application form that can find multiple words in a text
I am working on a antivirus i just need the method that allow me to find if the text contain x,y,z word
eg : if the text contain virus Or kill Or delete a msgbox will pop up and say that the text file is dangerous
Thanks
Three answers:
2010-07-30 10:50:26 UTC
If ((InStr(yourString, "kill") > 0) Or (InStr(yourString, "delete") > 0)) Then

MsgBox "The text file is dangerous"

End If
Kung Fu Champion
2010-07-30 10:48:56 UTC
Use a String function and search if the text contains the letters x,y,z.

Sorry, that's all I know.
tabor
2016-12-10 14:17:28 UTC
Do you only choose to study the filenames of the data into an array or relatively get the report contents? If the latter, i does not propose it. be conscious's .rfile report format isn't a textual content format (till you hold it as XML).


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...