Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wave file
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00466138
Message ID:
00466150
Views:
11
>>I have telphone.jpg and i have telphone.wav
>>
>>telphone.wav is ringing sound of telephone.
>>
>>Now what should happend when i click on the telphone.jpg than telphone.wav should start ring .
>>how to do.
>
>Hello, Mohammed.
>
>Just put your JPG as the Picture of an Image control on a form.
>
>In its Click() method, issue:
>
>SET BELL TO "telphone.wav"
>?? chr(7)
>
>
>Hope this helps.


Just a simple addition to what Martín said:
You can place the Set Bell to command right after the line ?? chr(7).
You don't need to wait for resetting it till the wav stopped.
So the code will look like:
Set bell to 'telphone.wav'
?? chr(7)
set bell to
Previous
Reply
Map
View

Click here to load this message in the networking platform