(CodeLib-Manager)
Registriert seit: 9. Jul 2003
Ort: Ensdorf
6.723 Beiträge
Delphi XE Professional
|
Re: Bei einem Text in RichEdit bestimmte Wörter formatieren
12. Dez 2004, 13:58
Hi!
Da steht doch alles deutlich:
Zitat:
Returns the index value of the first character in a specified substring that occurs in a given string.
Unit
System
Category
string handling routines
Delphi syntax:
function Pos(Substr: string; S: string): Integer;
Description
In Delphi, Pos searches for a substring, Substr, in a string, S. Substr and S are string-type expressions.
Pos searches for Substr within S and returns an integer value that is the index of the first character of Substr within S. Pos is case-sensitive. If Substr is not found, Pos returns zero.
The PosEx function is similar to Pos, but provides additional features and can be used in C++ code.
if Pos(gesuchtes_wort,text) > 0 then
und dann das von oben
Ciao Frederic
Frederic Kerber
|
|
Zitat
|