Object variable or With block not set
Private Sub mnuExit_Click() ExitAndCloseNicely End Sub Private Sub ExitAndCloseNicely() If p.PlayState = mpPlaying Then p.Stop Set p = Nothing Unload Me End End Sub
There is no where else in the code that
would set p=nothing.
Also, I don't get the error and the sound stops
properly if I close using the X in upper right corner.
Need help plz.

New Topic/Question
Reply




MultiQuote




|