Developer Network
Developer Network
Developer Network
ProfileText
ProfileText
:CreateViewProfileText:
Sign in
Subscriber portal
Get tools
Downloads
Visual Studio
SDKs
Trial software
Free downloads
Office resources
Programs
Subscriptions
Overview
Administrators
Students
Microsoft Imagine
Microsoft Student Partners
ISV
Startups
Events
Community
Magazine
Forums
Blogs
Channel 9
Documentation
APIs and reference
Dev centers
Samples
Retired content
We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second.
This forum has migrated to
Microsoft Q&A
.
Visit
Microsoft Q&A
to post new questions.
Learn More
Ask a question
Quick access
Forums home
Browse forums users
FAQ
Search related threads
Remove From My Forums
Answered by:
'Unexpected expression' and 'Unexpected token' error trying to play .wav using Sound.Play
Archived Forums 341-360
>
Small Basic
Question
0
Sign in to vote
Can anyone tell me what is wrong with this line:
Sound.Play(C:\WINDOWS\Media\Windows XP Battery Low.wav)
SB gives me these two errors for this line:
282,14: Expected an expression here.
282,0: Unexpected token \WINDOWS\Media\Windows found.
THNX!
Monday, January 19, 2009 6:02 PM
Answers
0
Sign in to vote
Need quotes.
Sound.Play("c:\windows\media\windows xp battery low.wav")
Marked as answer by
Path_drc
Monday, January 19, 2009 8:07 PM
Monday, January 19, 2009 6:13 PM
All replies
0
Sign in to vote
Need quotes.
Sound.Play("c:\windows\media\windows xp battery low.wav")
Marked as answer by
Path_drc
Monday, January 19, 2009 8:07 PM
Monday, January 19, 2009 6:13 PM
0
Sign in to vote
OK, I feel a little dumb now.
Thanks Vijaye.
Monday, January 19, 2009 8:08 PM