回复 3楼 zhuyongxing
请问一下我这个在游戏中插入音乐再根据菜单选择曲目的程序错在哪了?
Private Sub Form_Load() '播放
Dim Index As Integer
IsMusicOn = True
Select Case Index
Case 1 '播放第1首歌
'文件名
RetValue = mciSendString("OPEN " & App.Path & "\zmr.mid TYPE SEQUENCER ALIAS BackgroundMusic", "", 0, 0)
Case 2 '播放第2首歌
'文件名
RetValue = mciSendString("OPEN " & App.Path & "\shilei1.mid TYPE SEQUENCER ALIAS BackgroundMusic", "", 0, 0)
End Select
End Sub
Private Sub song_Click(Index As Integer)
Dim l As Integer
IsMusicOn = True
For l = 1 To 3
song(1).Checked = False
Next l
song(Index).Checked = True
music.Enabled = True
End Sub