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 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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.