Hi,
I would be very happy i someone will explain me how can i select a folder in NAV 2013.
I know that there is codeunit 419, but there I can only select a file and based on that the path is given.
If the folder that I want to select is empty, then a new file should be made so i can select it. But i don't want this [-X
Thank you for helping me.
0
Answers
I have found what i was searching for:
http://msdn.microsoft.com/en-us/library ... ialog.aspx
Here you can find also an example:
Name DataType Subtype Length
DialagResult DotNet System.Windows.Forms.DialogResult.'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
CommonDialog DotNet System.Windows.Forms.FolderBrowserDialog.'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
CommonDialog := CommonDialog.FolderBrowserDialog;
DialagResult := FolderBrowserDialog.ShowDialog();
IF (DialagResult.CompareTo(DialagResult.OK) = 0) THEN BEGIN
EXIT(FolderBrowserDialog.SelectedPath());
END;