Thanks Bruce,
I just need to confirm that the file was successfully downloaded, before deleting the remote-file.
Looking at the "GetNextFile" routine in the example app:
I've added the line below? (is this the correct place for adding the line)
GetNextFile Routine
data
found long
code
loop until records (ThisFTPControl.DirListingQ) = 0
QueueProgress += 1
get (ThisFTPControl.DirListingQ ,1)
If ThisFTPControl.DirListingQ.Attrib <> 0
conversation = '-- Ignoring Not-A-file : ' & clip(ThisFTPControl.DirListingQ.Name) & '<13,10>' & Conversation
delete (ThisFTPControl.DirListingQ)
cycle
end
conversation = '-- Fetching file : ' & clip(ThisFTPControl.DirListingQ.Name) & '<13,10>' & Conversation
ThisFTPControl.GetRemoteFile(clip (ThisFTPControl.DirListingQ.Name),clip(pParms.pLocalFileName) & '\' & ThisFTPControl.DirListingQ.Name)
?status{prop:text} = clip(pParms.pLocalFileName) & '\' & ThisFTPControl.DirListingQ.Name
ThisFTPControl.DeleteFile(ThisFTPControl.DirListingQ.Name)
delete (ThisFTPControl.DirListingQ)
found = 1
break
end