I use a Dataport to Import from a txtfile to a table.
In "Dataport - OnPostDataport()" I remove the file I have Imported, like this :
IF EXISTS(CurrFile.NAME) THEN BEGIN
FileName := CurrFile.NAME;
CurrFile.CLOSE;
ERASE(FileName);
END;
FileName is a Global Variable of Text - 255
I only wish to remove the file if the Import have been successfull, that is all data is imported to the table.
Is there a property on the Dataport to see if the Import was successfull ?