Unload Me vs End
Hi all,
what exactly is the difference between the Unload Me method and the End method. Thought they simply quit the program??
[136 byte] By [
ootnitsuj] at [2007-11-11 8:00:50]

# 1 Re: Unload Me vs End
The End function does not allow any terminating events to fire, the application terminates immediately, so there is no opportunity for application clean-up.
# 2 Re: Unload Me vs End
i see i see...so thats the difference...thanks pclement
I have another Qn here:
is it possible to call for subroutines in VB, just like those in C programming where you call for user-defined functions...
because I have many buttons performing serveral identical task and so i am thinking of might as well group al these tasks into individual rountin and all i have to do is just to call for them...it also makes my code more readable...
hope someone can help me with this... thanks thanks thanks in advance
Justin
# 3 Re: Unload Me vs End
Yes, you can call a routine from anywhere. Just use the name:
Sub MyRoutine(byval sString as string)
msgbox sString
End Sub
Then, in the click event (or anywhere else), just use:
MyRoutine "Hello World!"
-- Side note, generally you should post new questions as a new thread. You'll get more responses/readers that way.