Showing posts with label How to Get Path Value in ax 2012. Show all posts
Showing posts with label How to Get Path Value in ax 2012. Show all posts

Monday, 1 February 2016

How to Get Path Value in ax 2012

static void Job39(Args _args)
{
    Dialog dialog;
    Filename filename;
    DialogField dialogFilename;
    str myCsvFile;
    ;
    dialog = new dialog();
    dialog.caption("Choose a file");
    dialogFilename = dialog.addField(extendedTypeStr(FilenameOpen));
    dialog.run();

    if(dialog.closedOk())
    {
    filename = dialogFileName.value();
    #define.file("@'"+filename+"'")
    myCsvFile = #file;
    info(myCsvFile);
    }
}