Recent

Author Topic: Reading selected directory  (Read 2518 times)

Zath

  • Sr. Member
  • ****
  • Posts: 391
Reading selected directory
« on: June 19, 2013, 06:27:14 pm »
I'm calling a TSelectDirectoryDialog with a button click.
I'm hoping to assign the chosen Dir to a global variable drName.
This will then be used with known subdirectories to create a full path.

How do I get the chosen directory from the dialog and what event do I use to do so ?

Thanks for any guidance.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Reading selected directory
« Reply #1 on: June 19, 2013, 06:39:20 pm »
Code: [Select]
if SelectDirectoryDialog1.Execute then begin
  drName := SelectDirectoryDialog1.FileName;
end;

Zath

  • Sr. Member
  • ****
  • Posts: 391
Re: Reading selected directory
« Reply #2 on: June 20, 2013, 12:14:48 am »
Thanks.
Works well.

 

TinyPortal © 2005-2018