How to get file extension from a FileListbox

I want to get the file extension of file in a TFileListbox.

By clicking the file, I want to find out if the file is .doc or .pdf

Is it possible?
rainbowsoftwareAsked:
Who is Participating?
 
Ferruccio AccalaiConnect With a Mentor Senior developer, analyst and customer assistance Commented:
procedure TForm1.FileListBox1Click(Sender: TObject);
begin
showmessage(extractFileExt(filelistbox1.FileName));
end;

F68 ;-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.