Delete a file

Hello its me again, how can i delete a file after reading ? ------------------ Best regards Alejandro Schubert System Engineer EMail: alejandro.schubert@cycos.com

File.ERASE(name) Lars Strøm Valsted Head of Project and Analysis Columbus IT Partner A/S www.columbusitpartner.com

Thanks, but if i use this command, i get following error: …unkown command or variable … oh, i got the bug, simple not use file. !!! ------------------ Best regards Alejandro Schubert System Engineer EMail: [url]ale Edited by - Alex on 2001 Mar 02 13:16:13

Correct syntax is: [Ok] := ERASE(Name) /Soren

C/AL Global MyFileName Text 250 So if we wanted to delete a file after Importing using a Dataport OnPreDataport() MyFileName:=CurrDataport.FILENAME; OnPostDataport() IF file.EXISTS(MyFileName)then file.ERASE(MyFileName); David Cox MindSource (UK) Limited Navision Solutions Partner Email: david@mindsource.co.uk Web: www.mindsource.co.uk