In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Como usar TFtp

Foro público de Xailer en español
Responder
Avatar de Usuario
Marcelo Coelho Silva
Mensajes: 269
Registrado: Sab May 31, 2008 4:49 pm
Ubicación: Brasil
Contactar:

Como usar TFtp

Mensaje por Marcelo Coelho Silva »

Senhores,
Estou tentando utilizar a Classe TFtp da seguinte forma:
// cPass, cUser, lFtpPas e cServerFtp variáveis carregadas anteriormente
With Object ::oFtp1
:cPassword := cPass
:cUser := cUser
:lPassive := lFtpPas
:Connect( cServerFtp ) // esta retornando .f.
:GetFile("lista.txt", ".Upgradelista.txt") // esta retornando .f.
End With
Forem não esta funcionado.
Quem poder me auxiliar,
Obrigado,
Marcelo Coelho Silva
Brasil.
Att.

Marcelo Coelho Silva
Brasil.
Avatar de Usuario
Marcelo Coelho Silva
Mensajes: 269
Registrado: Sab May 31, 2008 4:49 pm
Ubicación: Brasil
Contactar:

Como usar TFtp

Mensaje por Marcelo Coelho Silva »

Senhores,
Achei a falha.
Faltou o Methodo :Open() antes do Methodo :Connect().
Att.
Marcelo Coelho Silva
Brasil.
Em 05/04/2012 18:52, Marcelo Coelho Silva escreveu:
> Senhores,
>
> Estou tentando utilizar a Classe TFtp da seguinte forma:
>
> // cPass, cUser, lFtpPas e cServerFtp variáveis carregadas anteriormente
>
> With Object ::oFtp1
> :cPassword := cPass
> :cUser := cUser
> :lPassive := lFtpPas
> :Connect( cServerFtp ) // esta retornando .f.
> :GetFile("lista.txt", ".Upgradelista.txt") // esta retornando .f.
> End With
>
>
>
> Forem não esta funcionado.
>
> Quem poder me auxiliar,
>
> Obrigado,
>
> Marcelo Coelho Silva
> Brasil.
Att.

Marcelo Coelho Silva
Brasil.
Responder