>>>Is it possible to feed a variable to SET BELL instead of a WAV file? I'd like to store the WAV files in a table and use one without first writing it to the disk.
>>
>>No, SET BELL works with files only.
>
>Yes, I know... I actually meant: Is there some API function. But I have already decided to stick to the traditional way of loading a wav-file.
>
>Thanks :)
How about
cWav = "c:\vfp9\sounds\mysound.wav"
or
cWav = Alltrim(MyTable.Mysound)
SET BELL TO (cWav)
?? CHR(7)
This works for me.