>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement