For the first time I'm using TFileNameEdit to get a directory. To extract the directory with the value returned from the dialogname I call property AcceptFileName:
procedure TFrmOptions.EDefaultAcceptFileName(Sender: TObject; var Value: String);
begin
EDefault.Text := ExtractFileDir(Value);
end;
But Edefault.text gets the whole value of the variabele 'Value' and not the extracted directory.
How do I get the right value to EDefault.Text?