Hi,
I want to call the SelectDirectory function, for the user to browse to a desired folder, but I want to set the initial startpoint.
I have this code so far:
procedure TSDIAppForm.Button1Click(Sender: TObject);
var
Dir: String;
begin
SetCurrentDir('F:\PCB\Altium\Projects');
SelectDirectory('Select a directory', '', Dir);
Folderlabel.Caption := (Dir);
end;
The idea is that when I click the button, the SetCurrentDir would start the SelectDirectory off in F:\PCb etc. But this isn't working, the SelectDirectory always starts in desktop as far as I can tell.
What is it I am missing?
Tenchy
Delphi 11 on XP PRo.
I want to call the SelectDirectory function, for the user to browse to a desired folder, but I want to set the initial startpoint.
I have this code so far:
procedure TSDIAppForm.Button1Click(Sender: TObject);
var
Dir: String;
begin
SetCurrentDir('F:\PCB\Altium\Projects');
SelectDirectory('Select a directory', '', Dir);
Folderlabel.Caption := (Dir);
end;
The idea is that when I click the button, the SetCurrentDir would start the SelectDirectory off in F:\PCb etc. But this isn't working, the SelectDirectory always starts in desktop as far as I can tell.
What is it I am missing?
Tenchy
Delphi 11 on XP PRo.