Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > Italian Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

UpLad file xml con FTP

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2009, 09:43 AM
Junior Member
 
Join Date: Feb 2009
Posts: 26
Default UpLad file xml con FTP

Ciao a tuti
Ho realizzato un programma che carica un file xml
in un sito, con la funzione FTP.
Il mio problema è che non riesco a sapere quando termina
la fase di aggiornamento del sito per chiudere il programma
solo alla fine del caricamento.
Ho provato a mettere un ritardo, ma non serve, poichè
potrebbe essere poco o molto.

Di seguito la routine di aggiornamento

Sub aggiorna_Click
Table3.SaveXML("attivaXmlCel.xml")
fileFtp = "attivaXml.xml"
ftp.PutFile(AppPath & "\attivaXmlCel.xml",fileFtp)
msg.Text = "ATTESA AGGIONAMENTO INTERNET"
' tempo di ritardo per il cellulare 50 secondi circa
For n = 0 To 40
msg.Text = " ATTESA AGGIONAMENTO INTERNET"
For m = 0 To 4000
Next m
msg.Text = ""
For z = 0 To 4000
Next z
Next n
form3.close
End Sub

Ciao

Corrado

email: corrado.carbonaro2@virgilio.it
cell. 3933535215
Reply With Quote
  #2 (permalink)  
Old 11-20-2009, 10:28 AM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Ciao corrado,

io non sò come si fa a sapere quando termina la fase di aggiornamento con la funzione FTP, però mi domando perchè non usi un Timer invece della funzione For-Next?


Ciao,
Filippo
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #3 (permalink)  
Old 11-21-2009, 01:07 PM
Junior Member
 
Join Date: Feb 2009
Posts: 26
Default

Quote:
Originally Posted by Filippo View Post
Ciao corrado,

io non sò come si fa a sapere quando termina la fase di aggiornamento con la funzione FTP, però mi domando perchè non usi un Timer invece della funzione For-Next?


Ciao,
Filippo



Ciao Filippo,

In riferimento al tuo consiglio, credo che non cambi molto,
in quando, anche con il timer, non sai mai quando devi chiudere il programma.
Ci sarà qualche funzione che ti dica quando il trasferimento è terminato.

Ciao
Corrado
Reply With Quote
  #4 (permalink)  
Old 11-21-2009, 10:09 PM
giannimaione's Avatar
Senior Member
 
Join Date: Apr 2007
Location: Naples, Italy
Posts: 199
Send a message via Skype™ to giannimaione
Awards Showcase
Beta Tester 
Total Awards: 1
Default

ciao ragazzi,

verificate questo http://www.basic4ppc.com/forum/attac...rogress_v1.zip

un saluto,
__________________
Gianni Maione
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSV file generates strange start in file sunnyboyj Questions (Windows Mobile) 9 12-21-2007 09:38 PM


All times are GMT. The time now is 12:35 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0