NAV 2013 - I would like to select a folder

IonesiCIonesiC Member Posts: 14
edited 2013-01-24 in NAV Three Tier
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.

Answers

  • IonesiCIonesiC Member Posts: 14
    Hello again :)

    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;
Sign In or Register to comment.