>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only