Hmm her er koden der ikk virker...
function ReplaceString(S : String) : String;
var
I : Integer;
begin
for I := 0 to Length(S)-1 do
if S[I] = 'a' then S := Copy(S, 0, I-1) + '17' + Copy (S, I+1, Length(S));
Result := S;
end;
Mvh.
Rune Jensen
---------------------------------------------------------------------------
##The one who laugh last is the one who think slowest!##
---------------------------------------------------------------------------