Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the use of Still executing

Status
Not open for further replies.

motto

Programmer
May 28, 2000
23
0
0
IN
Hi,<br><br>&nbsp;&nbsp;When do we use the Still executing option in the<br>Do while loop.What is the use of this option.<br>Could somebody give some example on this.<br><br><br>Many thanks for the help<br><br>Motto
 
You mean with the FTP control I think.<br><br>You need to use this because the MS FTP control works in the background - but can only do one thing at once.<br><br>So. If you <b>get</b> a file the next line of your code executes before the file transfer has finished - possibly several minutes before if it's a large file.<br><br>If you try to do another <b>get</b> before the first one has completed the control will fail -- so you need to check .StillExecuting before you do that.<br><br>The easiest way to do this is:<br><br>While MSFtp1.StillExcuting<br>&nbsp;&nbsp;&nbsp;&nbsp;DoEvents<br>Wend<br><br> <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top