ftp em listbox
25/11/2005
0
MUITO OBRIGADO..
Emerson1
Posts
07/12/2005
Emerson1
29/12/2005
Emerson1
*****
procedure TFrmftp.BitBtn1Click(Sender: TObject);
begin
//para enviar
IF ListBox2.ItemIndex >= 0 then BEGIN
RemoteFile:= ListBox2.Items.Strings[ListBox2.ItemIndex];
LocalFile := ´C:\´ + RemoteFile;
NMFTP1.Upload(LocalFile, RemoteFile);
BitBtn8.Enabled := True;
END
ELSE BEGIN
Application.MessageBox (´NENHUM ARQUIVO SELECIONADO..!´,´EMERSON´, MB_OK + MB_ICONINFORMATION);
//para receber
procedure TFrmftp.BitBtn10Click(Sender: TObject);
begin
IF ListBox1.ItemIndex >= 0 then BEGIN
remoteFile2:= ListBox1.Items.Strings[ListBox1.ItemIndex];
localfile2 := ´C:\´+ RemoteFile2;
NMFTP1.Download(remotefile2,localfile2);
BitBtn8.Enabled := True;
END
ELSE BEGIN
Application.MessageBox (´NENHUM ARQUIVO SELECIONADO..!´,´EMERSON´, MB_OK + MB_ICONINFORMATION);
END;
//cria as variaveis remoteFile2,localfile2,remoteFile,localfile: string
espero ajudar alguem ......agora vou tenta descobrir como faço para envia ou receber mais de um arquivo no listbox(itemindex)..
29/12/2005
Kitsystem
Clique aqui para fazer login e interagir na Comunidade :)