(Gast)
n/a Beiträge
|
14. Nov 2002, 16:24
Kleiner Tip noch:
Delphi-Quellcode:
procedure TForm5.Button1Click(Sender: TObject);
begin
if OpenDialog1.Execute then
begin
SynEdit1.Lines.LoadFromFile(OpenDialog1.FileName);
if Edit1.Text = '' then
begin
Edit1.Text := ExtractFileName(ChangeFileExt(OpenDialog1.FileName,''));
end;
end;
end;
Grüsse, Daniel
[edit=Daniel B]Ein end; vergessen.[/edit]
|
|
Zitat
|