Home > Back-end >  How to according to the key words in the DELPHI7 batch search Tembeddedwb controls text content
How to according to the key words in the DELPHI7 batch search Tembeddedwb controls text content

Time:09-24

Himself in delphi7 searchstring function by using Tembeddedwb controls the batch for web page keyword search, web content is stored in the mysql database is longtext type fields, why I wrote
Memerystream. Postion:=0;
Tembeddedwb. Loadfromstream (memerystream);
If Tembeddedwb. Searchstring (' some ') then
The begin
.
end;
Cannot perform the begin and end in the code segment,
In addition, is there a on each master Tembeddedwb control function of the instructions, thank you!

CodePudding user response:

Memerystream

The Write

You have to write things in the memory stream?

Purely to eliminate zero reply

CodePudding user response:

Memo shows HTMLCode give it a try

CodePudding user response:

Memorystream memory stream wrote, but still can't Searchstr,
Htmlcode looked at also no problem,
Now I'm flexible processing, converting memorystream stringstream, then write a pattern matching search algorithm,
Solved the problem, but new problems again, some HTMLCODE GB2312 decoding method, some HTMLCODE is UTF8 decoding way, and my pattern matching search algorithm with ansitoUTF8 conversion function for unity, so some of the UTF8 encoding is still cannot use pattern matching method is to find, I want to convert HTMLCODE unity to UTF8 encoding schema matching again, do excuse me each warrior HTMLCODE turn UTF8 function,
  • Related