On Aug 31, 2006, at 10:13, Joseph Nastasi wrote:
Given that you are using FTP Suite, the FTP Status class should
provide you with the gating status you need to know when a file is
ready to process. The Successful_FTP event is what you should be
using. I'm not sure why you'd have to put in a delay for safety's
sake.
If your using the Sequences instead of the Commands, I'd suggest
you look into the latter as they give much better control. Either
way, the Successful_FTP event in FTP Status Class will only fire if
the file is 100% complete.
I dropped a MsgBox message in the Successful_FTP method and received
the messages I expected such as 'Logon Complete' and 'File Transfer
Complete'. What I didn't see is a 'Logoff Complete'. Is it possible
that the file doesn't get released because I haven't 'officially'
logged off?
If that is the case how do I force the logoff?
In my FTPThread, after all the transferring has happened I call
self.FTPLogoff which looks like this:
Private Sub FTPLogoff()
//reset flags and execute Logoff Smart Command
blnFTPDone = false
blnFTPError = false
ftpSession.Logoff
Return
------
This construct and the FTPLogon method came right out of the manual
(except for the variable names), so if there is another way to
accomplish this I don't know what it is.
Joe - if you want to consider this a support request that's fine,
just reply off-list.
--
David Glass - Gray Matter Computing
graymattercomputing.com - corepos.com
559-303-4915
Apple Certified Help Desk Specialist
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>