Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with playing WAV from EXE
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00050686
Message ID:
00050817
Views:
22
>I have command button that have following code in Click event
> SET BELL TO "MyWav.WAV', 0
> ?? chr(7)
> SET BELL TO
> … some other code
>
>this is working just fine when I'm testing my form in FoxPro 5.0, but when I build EXE file and run it ( on my machine ) I have no sound ( I'm using private data sessions, and I do not have top level form )
>
>Any help will be appreciate
>
>Zoran Milivojevic
>kreda@eunet.yu

Hi,

I do the same thing with command buttons and I've found that the SET BELL TO command seems to require to full path name to the wav file;
SET BELL TO "C:\whatever.wav", 0
If you need to pass in different wav files to play, this is what I have;

LPARAMETERS lcWavFile

lcSound = LOCFILE(lcWavFile, "WAV")
SET BELL TO lcSound, 1
??CHR(7)
SET BELL TO

The LOCFILE puts the full path in for me.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform