Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where's the DING!!!
Message
From
31/10/1997 02:14:00
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00057471
Message ID:
00057551
Views:
32
The API function is not useful here. If the user doesn't have a WAV file set for the specific action in Control Panel, the MessageBeep will "play" the same sound you have now with ?chr(7) (ie the default sound). If you want to here the "DING!", you must use the SET BELL TO MyFile.wav, 1 and issue ??chr(7)

Vlad

>Thanks for the info. I'm not very versed in using the Win32 API though. Could you please give me an example of how to do this. Thanks in advance. Also, I don't get the text either and I'm sure we could find more like this in the help.
>
>>You have to use a WAV file or the MessageBeep Win32 API function (which will play one of the standard sounds specified in Control Panel).
>>
>>Beside that, here is a quote from the Help file for SET BELL command:
>>
>>"If you specify a waveform or system alert sound, you must also include nDuration. A syntax error occurs if you omit the duration value. The duration value you specify is ignored and the entire waveform or system alert sound is played."
>>
>>I would really like to understand the logic of this text! :))
>>
>>Vlad
>>
>>>In all earlier versions of FoxPro for DOS issuing ?? CHR(7) gave an audible and attention grabbing DING! In VFP issuing the same thing gives a wimpy tick. If I SET BELL TO 'C:\WINDOWS\DING.WAV",1 this works fine for machines with sound cards.
>>>
>>>How do I create a more audible and attention grabbing DING! for users without sound cards?
Previous
Reply
Map
View

Click here to load this message in the networking platform