CommaTextIo file; container line; CustTable custTable; #define.filename(@'C:\Test\TestFile.csv') #File file = new CommaTextIo(#filename, #io_write); if (!file || file.status() != IO_Status::Ok) { throw error("File cannot be opened."); } while select AccountNum, Name from custTable { line = [ custTable.Name , custTable.Name]; file.writeExp(line); } info(strFmt("File %1 created in specified folder.", #filename)); }
Technical Tutorials x++,tips on issues or troubleshooting On Ax ERP ,Microsoft Dynamics 365,Ax 2012,Microsoft , U.S.,Business Software solution.