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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MMControl1.Notify and MMControl1_Done()

Status
Not open for further replies.

barrytraver

Programmer
Nov 28, 2000
40
0
0
US
Why does the following code work to make a *.MID or *.MP3 file repeat automatically, even if MMControl1.Notify is set to False?

Private Sub MMControl1_Done(NotifyCode As Integer)
Debug.Print "MMControl1.Notify: "; MMControl1.Notify
If NotifyCode = 1 Then
If MMControl1.Command = "Play" Then
MMControl1.Command = "Close": DoEvents
MMControl1.Command = "Open": DoEvents
MMControl1.Command = "Play": DoEvents
End If
End If
End Sub

Yes, it should work if MMControl1.Notify is set to True, BUT how come it also works when MMControl1.Notify is set to False?? (I thought the MMControl_Done() event fired only if MMControl1.Notify was set to True.)

Anyone have an explanation for this? Do I not understand correctly the purpose of MMControl1.Notify?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top