07.11.2012, 10:11 | #1 |
Участник
|
Malaysia: Creating a comma-separated value file
Источник: http://axmas.blogspot.com/2012/11/cr...alue-file.html
============== class CreateCommaFile { } public static client void main(Args _args) { CommaTextIo file; container line; MainAccount mainAccount; ; #define.filename(@'C:\Temp\accounts.csv') #File file = new CommaTextIo(#filename, #io_write); if (!file || file.status() != IO_Status::Ok) { throw error("File cannot be opened."); } while select MainAccountId, Name from mainAccount { line = [mainAccount.MainAccountId, mainAccount.Name]; file.writeExp(line); } info(strFmt("File %1 created.", #filename)); } Источник: http://axmas.blogspot.com/2012/11/cr...alue-file.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|