Einzelnen Beitrag anzeigen

Benutzerbild von Die Muhkuh
Die Muhkuh

Registriert seit: 21. Aug 2003
7.332 Beiträge
 
Delphi 2009 Professional
 
#5

Re: text.endung wie krieg ich den text raus

  Alt 11. Mär 2006, 17:07
Hi,

ich weiß was er will...

Delphi-Quellcode:
function FileNameWithoutExt(const FileName: String): String;
var
  I, iPos: Integer;
  S: String;
begin
  S := ExtractFileName(FileName);

  for I := Length(S) downto 1 do
  begin
    if S[I] = '.then
    begin
     iPos := I;
     Break;
    end;
  end;

  Result := Copy(S, 1, iPos);
end;
Is jetzt außem Kopf raus.
  Mit Zitat antworten Zitat