Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search in HTML 1

Status
Not open for further replies.

Gert

Programmer
Apr 9, 2000
240
DO
How could I search in an HTML, some text or work?
some command or idea.

Thanks
 
Searching in HTML is just like searching plain text - so I don't understand the problem?
 
Sorry I was not so clear.

I have a list of HTML document, and I want an aplication in VFP, that if I write in a textbox the word "country" the aplication search all HTML text for that word.

I can do that with the search engine wizard, but I will have to put all the HTML document in a table, and that's a lot o work, because I have about 800 pase in HTML.

Thanks
 
Sorry I was not so clear.

I have a list of HTML document, and I want an aplication in VFP, that if I write in a textbox the word "country" an press the "search" bottom the aplication search all HTML text for that word( or in one HTML page selected by the user.

I can do that with the search engine wizard, but I will have to put all the HTML documents in a table, and that's a lot o work, because I have about 800 pase in HTML.

Thanks...
 
Since you did not state the size of the html files, here is a function will work.
[tt]
lcSerachStr = "COUNRTY"
lnFile = fopen(Htmlfile)
do while !feof(lnFile)
lctext = upper(fgets(lnFile))
if at(lcSearchStr , lcText) > 0
do whatever
exit
endif
enddo
= fclose(lnFile)
[/tt]

You can also use the commands
Atline(), AtcLine(), or RatLine()
or the commands
ChrTran(), StrTran(), Stuff(), Sys(15), Sys(20) David W. Grewe
Dave@internationalbid.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top