Hi,
I'm currently getting a run-time error '35760' "Cannot coerce type" when trying to ftp a file. My help file within visual basic appears to be non-existent and wondered if someone can explain this to me.
The code preceeding the error is as follows:
FromFile = <from directory and file name>
ToFile = <to directory>
FTPError = False
Inet1.AccessType = icNamedProxy
Inet1.Proxy = <proxy server name>
Inet1.URL = <URL name>
Inet1.UserName = <username>
Inet1.Password = <password>
fStr_FTPCommand = "PUT " & FromFile
Inet1.Execute , "cd <directory>"
Do While Inet1.StillExecuting
DoEvents
Loop
Inet1.Execute , fStr_FTPCommand <-error occurs here
Do While Inet1.StillExecuting
DoEvents
Loop
I'm currently getting a run-time error '35760' "Cannot coerce type" when trying to ftp a file. My help file within visual basic appears to be non-existent and wondered if someone can explain this to me.
The code preceeding the error is as follows:
FromFile = <from directory and file name>
ToFile = <to directory>
FTPError = False
Inet1.AccessType = icNamedProxy
Inet1.Proxy = <proxy server name>
Inet1.URL = <URL name>
Inet1.UserName = <username>
Inet1.Password = <password>
fStr_FTPCommand = "PUT " & FromFile
Inet1.Execute , "cd <directory>"
Do While Inet1.StillExecuting
DoEvents
Loop
Inet1.Execute , fStr_FTPCommand <-error occurs here
Do While Inet1.StillExecuting
DoEvents
Loop