Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable instead of wav file
Message
From
09/03/2010 23:43:26
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01453613
Message ID:
01453663
Views:
63
>>>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) && mysound is a field that stores the FULL Path to the wav
SET BELL TO (cWav)
?? CHR(7)
This works for me.
Previous
Reply
Map
View

Click here to load this message in the networking platform