hi,
My problem is when i open a file dialog box before opening any file i should get the file name to display preview.
but i could not make out the selected file is file or directory. Because GETFILENAME() will give the file in the
edit box . even if i click on a directory previously selected file name remains in edit box.

please suggest me suitable solution for this..

thanks and regards..
dasaradh...