hi there,

due to the fact that in Axapta 3.0 the object-method finalize() is a protected method, it is not possible for the io-classes to call the method directly.
so, destroying the io-object like
export = null;
is the best solution in this case...
regards
wolfgang



--- In [EMAIL PROTECTED], "Preston A. Larimer" <[EMAIL PROTECTED]> wrote:
Use the finalize method of asciiIO …. Export.finalize(); Finalize is called automatically when the scope of the IO file is
destroyed,.
-----Original Message-----
From: Mikael Dalgård [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 1:27 AM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Closing files after usage
Hi everybody
Can anybody tell me, how I can close a file after written data to
it,
like in this little example down below?
FilenameSave filename = "d:\\temp\\comma.csv";
AsciIIO export = new
AsciIIO(filename,"W");
;
while select * from CUT
order by AccountNum, Name
{
export.write(CUT.AccountNum + '@' + CUT.Name);
}
Best regards
Mikael Dalgård


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .



Yahoo! Groups Sponsor ADVERTISEMENT
click here


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Reply via email to