Friday, 20 April 2018





Export Data in .txt form without  Double Quotes(" ") string Value in ax 2012 x++



for this TextIO class is very important

static void Job29(Args _args)
{

    container c;
    TextIO myfile;

    FileIoPermission perm;
    str message;

    #define.ExampleFile(@"D:\myfile.txt")
    #define.ExampleOpenMode("w")
 
   



    // Set code access permission to help protect the use
    // of CommaIO.new
    perm = new FileIoPermission(#ExampleFile, #ExampleOpenMode);
    perm.assert();

    myfile = new TextIO(#ExampleFile, #ExampleOpenMode);



    c = [1,"aks",1.324,"Last field"];
 
    myfile.outFieldDelimiter(",");
    myfile.writeExp(c);


    // Close the code access permission.
    CodeAccessPermission::revertAssert();
}

Output




Thanks
Akshay

No comments:

Post a Comment