With property problems or something. (1 Viewer)

Local time
Today, 04:14
Joined
Aug 17, 2009
Messages
10
Help with WMP10

Code:
Private Sub WindowsMediaPlayer6_ScriptCommand(ByVal scType As String, ByVal Param As String)
Dim Player As WMPLib.WindowsMediaPlayer
Dim AtName As Object
Dim AtValue As Variant
Dim i As Integer
Dim Dbs As Database
Dim Rst As Recordset
i = 0
AtName = Player.currentMedia.getAttributeName(i)
AtValue = Player.currentMedia.getItemInfo(AtName)
Do Until i = Player.currentMedia.attributeCount
Dbs.Execute ("ALTER TABLE Log ADD COLUMN ""&AtName&")
AtValue = Player.currentMedia.getItemInfo(AtName)
i = i + 1
Debug.Print AtName
Debug.Print AtValue

Loop

End Sub
 

Users who are viewing this thread

Top Bottom