I get a Runtime Error 424 when trying to access a file in VB

Reply

Join Date: Jun 2005
Posts: 2
Reputation: Ghost1330 is an unknown quantity at this point 
Solved Threads: 0
Ghost1330 Ghost1330 is offline Offline
Newbie Poster

I get a Runtime Error 424 when trying to access a file in VB

 
0
  #1
Jun 23rd, 2005
Private Sub File1_Click() (<.....It usally highlights that)
File1.Pattern = ("*.wmv;*.mp3;*.wma;*")
Else: without
File1.Pattern = ("*.*")
End If

If Right(File1.Path, 1) <> "\" Then
FileName = File1.Path + "\" + File1.FileName
Else
FileName = File1.Path + File1.FileName
End If

End Sub

The Error is Runtime 424 Object Required and i cant seem to get the code to make it work right can any one help?? <It usually says "Object Required">


I'm trying to get Windows media player to play the files that i select. Ive tryed googleing it but can't get any thing plz help with both.Like wma and mp3 and video files but cant get it to work.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: I get a Runtime Error 424 when trying to access a file in VB

 
0
  #2
Jun 23rd, 2005
I don't know if this answer, but I'm not seeing an if statement in there. Just an else, and an end if.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2
Reputation: Ghost1330 is an unknown quantity at this point 
Solved Threads: 0
Ghost1330 Ghost1330 is offline Offline
Newbie Poster

Re: I get a Runtime Error 424 when trying to access a file in VB

 
0
  #3
Jun 25th, 2005
I have window media player in the program to and when i click a file for it to play it gives me that error. I am trying to get it were when i click on a Audio or Video file it plays it but when i run it it just give me that error.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC