Registriert seit: 4. Dez 2002
Ort: Behind the Firewall
240 Beiträge
Delphi 7 Personal
|
25. Apr 2003, 11:53
sFileName := OpenDialog1.FileName;
If UpperCase(ExtractFileExt(sFileName)) = '.DOC' Then Begin
...
// Fileformat is a Word Document
...
end
else If UpperCase(ExtractFileExt(sFileName)) = '.TXT' Then Begin
...
// Fileformat is a Text File
...
end;
Alex
|