Replace Text
A text replace function for strings.
function ReplaceText(const S,ReplacePiece,ReplaceWith: String):String;
Var
Position: Integer;
TempStr: String;
begin
Position := Pos(ReplacePiece,S);
if Position > 0 then Begin
TempStr := S;
Delete(TempStr,1,Position-1+Length(ReplacePiece));
Result :=
Copy(S,1,Position-1)+ReplaceWith+ReplaceText(TempStr,ReplacePiece,ReplaceWith)
End else Result := S;
end;
The PDJDBGridEx it is new generation of data award compo...
TAdvStringGrid is a stringgrid with lots of extra possib...
Standard action menu bar, created with TActionMainMenuBar is...
TAdvStringGrid is a stringgrid with lots of extra possibil...
DIHtmlLabel is a fast, lightweight replacement for Delphi's ...
Thursday 01 Feb 2007 | Delphi Tutorial | Strings