Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications

Post new topic   Reply to topic
media player
View previous topic :: View next topic  
Author Message
odelya
Newbie


Joined: 09 Aug 2005
Posts: 1

PostPosted: Aug 9th, 2005 11:48 AM    Post subject: media player Reply with quote

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?
Back to top
View user's profile Send private message
dougthomas
Moderator


Joined: 27 Jul 2005
Posts: 271
Location: Essex, UK

PostPosted: Aug 21st, 2005 04:24 AM    Post subject: Reply with quote

Hi,

Try it without the brackets

ie
wm.SetItemInfo "title", "hello"

Regards
Doug
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Visual Basic for Applications All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic