Programming with Reflection

image\rwnprg32.gif PlaySound method

 

Syntax object.PlaySound SoundFile, Asynchronous

 

Description

Plays a wave sound file.

Arguments

SoundFile Argument Type: String
Required
Specifies the path and name of a .wav sound file. An error is generated if the file doesn't exist or can't be found.

Asynchronous Argument Type: Boolean
Optional
If this argument is True, the sound plays asynchronously, which means PlaySound returns immediately, and the procedure continues before the sound has completed. If this value is false, the sound plays synchronously, which means PlaySound waits until the sound has finished before returning. If this argument is omitted, the default value is False.

 

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command