CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
CrisisHelper - First Aid in Tough Times of World Economic Crisis


_bm0 Rave Reports Developer Reference

TMemoBuf. SearchFirst method

Top  Previous  Next

Declaration

function SearchFirst(SearchText: string; CaseMatters: Boolean): Boolean;

 

Category

Memo

 

Description

This method will start a search process, looking for SearchText from the beginning of the buffer. If CaseMatters is true then the case of the characters must match; otherwise, case will not be a factor for the match. This function will return true if it finds a match and false if it doesn't. Use SearchNext to continue the search after the first occurrence.

 

See also

TMemoBuf Class, Pos, SearchNext

 

Example (Delphi)

// Store the number of occurrences of 'APPLE' in apples

Apples := 0;

Found  := MemoBuf.SearchFirst('APPLE', false);

while Found do begin

Inc(Apples);

Found := MemoBuf.SearchNext;

end; { while }

 

Example (C++Builder)

Apples := 0;

Found  := MemoBuf->SearchFirst("APPLE", false);

while (Found == true) {

Apples++;

Found = MemoBuf->SearchNext();

}/ while



You are reading help file online using chmlib.com

If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com