944,188 Members | Top Members by Rank

Ad:
Aug 9th, 2005
0

media player object

Expand Post »
hi!
i am trying to change the title of a media player object:

Private Sub stam()
Dim wm As New WindowsMediaPlayer
wm.URL = "C:\Documents and Settings\All Users\Documents\My Music\Sample Music\New Stories (Highway Blues).mpg"
MsgBox wm.currentPlaylist.getItemInfo("title")
wm.setItemInfo("title" ,"hello")
End Sub

the getitemifo works well, but not the setiteminfo
i get a messege: "compiler error expected ="
why?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
odelya is offline Offline
2 posts
since Aug 2005
Aug 10th, 2005
0

Re: media player object

Isn't setItemInfo applicable only to something like currentPlaylist or currentMedia?

About the error, try removing parenthesis when calling setItemInfo.

Is that VB6, BTW?
Reputation Points: 12
Solved Threads: 4
Junior Poster
Alvein is offline Offline
104 posts
since Jul 2005
Aug 17th, 2005
0

Re: media player object

it's VBA
what do you mean about removing parenthesis?
i tried adding currentplayerlist...
thanx a million
Reputation Points: 10
Solved Threads: 0
Newbie Poster
odelya is offline Offline
2 posts
since Aug 2005
Aug 17th, 2005
0

Re: media player object

Cool

Quote originally posted by odelya ...
what do you mean about removing parenthesis?
I was talkin about to not use brackets in wm.setItemInfo("title" ,"hello").
Reputation Points: 12
Solved Threads: 4
Junior Poster
Alvein is offline Offline
104 posts
since Jul 2005
Jan 9th, 2008
0

Re: media player object

Click to Expand / Collapse  Quote originally posted by odelya ...
iPrivate Sub stam()
Dim wm As New WindowsMediaPlayer
wm.URL = "C:\Documents and Settings\All Users\Documents\My Music\Sample Music\New Stories (Highway Blues).mpg"
MsgBox wm.currentPlaylist.getItemInfo("title")
wm.setItemInfo("title" ,"hello")
End Sub

why?
can i ask what is the use of this?

and can i ask how to create a media player in the vb6 or can i borrow a sample of ur project coz i want to learn how to make it and how to upload a music in my project
Reputation Points: -10
Solved Threads: 3
Posting Whiz in Training
technogeek_42 is offline Offline
254 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: VB6 - Create mew table using input from two other tables
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: need help in game





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC