|
-
Sep 21st, 2000, 12:02 PM
#1
Thread Starter
New Member
I have written a program to install an application patch on remote machines.
This is done by mapping a drive to a PC that is listed in a database, then using the copyfolder command installs the new patch. The program, then disconnects the mapping and moves to the next PC in the list.
My problem comes if I wish to end the program early. Because this program runs in a do while database is not EOF, the form will not respond when I click on the exit button, or any other button as if it has lost focus or is busy copying the files.
Is there a way that I can stop the form from loosing functionality while thing is in the loop.
Thanks
[email protected]
-
Sep 21st, 2000, 12:08 PM
#2
Hyperactive Member
I am somewhat new at this, however you can add a value to the exit button, say boolean for example, (or a numeric) if the button is activated, then the value will change.
Then add a line of code in your do loop that says
do while......(existing code)...And _
(boolean value of button) = True
then each cycle through the loop it will determine weather the value had changed.
I hope this helps!
Lee
 Mahalo 
VB6(SP5), VC++, COBOL, Basic, JAVA
MBA, MCSD, MCSE, A+
Computer Forensics
-
Sep 21st, 2000, 12:12 PM
#3
Thread Starter
New Member
The problem is that I can not click on anything on the form as it has lost focus as the program is busy mapping drives and copying files.
-
Sep 21st, 2000, 12:13 PM
#4
Junior Member
Lee M.
You could try using the Doevents statement in the loop
which should catch a mouse click on a exit button (eventually)
but most people swear against the doevents statement for various reasons.
Use it as a last resort.
John
-
Sep 21st, 2000, 12:16 PM
#5
Junior Member
-
Sep 21st, 2000, 12:24 PM
#6
Frenzied Member
You could......
......try adding another form to that app and that has the exit button on it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|