|
-
Aug 29th, 2000, 03:54 PM
#1
When I use the:
Unload FormName
method, the form disappears, but if I try to delete the program the computer says that the program is in use.
Am I not using the correct command to close the program?
-
Aug 29th, 2000, 03:56 PM
#2
Addicted Member
Use the End command to close a program.
-
Aug 29th, 2000, 04:11 PM
#3
_______
<?>
Code:
'use this in your unload event
Dim Form As Form
For Each Form In Forms
Unload Form
Set Form = Nothing
Next Form
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Aug 29th, 2000, 05:23 PM
#4
The difference between the 2 is Unload will trigger the unload events (QueryUnload, Unload and Terminate), and End will not.
-
Aug 29th, 2000, 05:52 PM
#5
_______
<?>
and it's also a good habit to set your
objects = nothing!
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
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
|