Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2008 Apr : How to get the Directory of TOpenDialog?

www.cryer.info
Managed Newsgroup Archive

How to get the Directory of TOpenDialog?

Subject:How to get the Directory of TOpenDialog?
Posted by:"Z. Klencsar" (z.klencs..@somogy.hu)
Date:Wed, 16 Apr 2008 14:01:06

Hi!

   When a TOpenDialog closes with a value of False (e.g. the user
pressed cancel), then the field Filename is empty, and the last
directory the user browsed cannot be determined on the basis of
Filename. How to get the last directory of TOpenDialog in this case?
Also, TOpenDialog has an event named OnFolderChange that occurs when a
directory is opened or closed from the dialog, but the event does not
receive the actual directory of the dialog: is there a way to get it there?

Any suggestions would be appreciated,

Zoltan

(MS Win XP SP2, D2007 Rc2)

Replies:

www.cryer.info
Managed Newsgroup Archive