I am in the middle of a project where I use four different folders containing all .wav files. Depending on the results of a sign on (ID) I want to use one of the four files. I am using the results of that sign in a "if..then" comparison to determine the folder I want to use. I then put that foldername in a varible and place the varible in the file PATH. However; the .wav does not play. Is there a way to use a varible in a file path?
bdell11
0
Newbie Poster
Recommended Answers
Jump to PostThe wave is not playing because the file is not open I suspect. Try the following which is very similar to a post here today as well -
Option Explicit 'Description: Calls the "Open File Dialog" without need for an OCX Private Type OPENFILENAME lStructSize As Long …
Jump to Postcheck out this link from MS. http://support.microsoft.com/kb/86281
placing the path on a variable should be okay.
don't have time to test but maybe you can get an idea for this:Dim strpath, strfolder, fullpath as string strpath = "c:\" strfolder = "FolderNametest" fullpath = …
All 6 Replies
AndreRet
526
Senior Poster
bdell11
0
Newbie Poster
cguan_77
8
Nearly a Posting Virtuoso
AndreRet
526
Senior Poster
bdell11
0
Newbie Poster
AndreRet
526
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.