Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CHR(7) Beep in VFP
Message
 
To
09/02/2000 16:51:46
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00329729
Message ID:
00329780
Views:
20
>I need to duplicate the ?CHR(7) BEEP that operates in 2x the same way in VFP. There are no speakers so I can't use a WAV. When the 2x program runs, the error message sends a beep alerting the user, but VFP seems to ignore ?CHR(7).
>
>Is there a way to do this?

Or you could go the more flexible route and do:

decl integer Beep in win32api integer,integer
?Beep(nFreq,nDuration)

where nFreq is the frequency in Hz (37 through 32,767)
and nDuration is the duration in milliseconds

From MSDN library

Remarks
Windows 95: The Beep function ignores the dwFreq and dwDuration parameters. On computers with a sound card, the function plays the default sound event. On computers without a sound card, the function plays the standard system beep.
Rip Ryness
International Falls, MN
Previous
Reply
Map
View

Click here to load this message in the networking platform