Einzelnen Beitrag anzeigen

Benutzerbild von s.h.a.r.k
s.h.a.r.k

Registriert seit: 26. Mai 2004
3.159 Beiträge
 
#2

Re: String-Bearbeiten (Filtern, Löschen, etc.)

  Alt 11. Mär 2006, 15:17
Schon mal die folgenden Proceduren probiert:
Delphi-Quellcode:
Pos Routine
 
Returns the index value of the first character in a specified substring that occurs in a given string.
 
Unit: System

function Pos(const substr: string, const str: string): Integer;
function Pos(const substr: WideString, const str: WideString): 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.
Delphi-Quellcode:
Copy(...)
Returns a substring of a string or a segment of a dynamic array.
»Remember, the future maintainer is the person you should be writing code for, not the compiler.« (Nick Hodges)
  Mit Zitat antworten Zitat