Q. TSE: About Sound():
Turns on the PC speaker and causes it to sound at a specified frequency, for
the specified duration.
Syntax: Sound(INTEGER frequency, INTEGER duration)
- frequency is the pitch of the tone to be issued, in hertz
(cycles per second).
- duration is the time, in milliseconds, for the tone to persist.
Returns: Nothing.
Notes: Under WINNT4/2000/XP, Sound() performs as stated.
Under WIN95/98/Me, frequency and duration are ignored, and the
following action occurs:
If the system is configured with a sound card, the "default sound
event" is played; otherwise, the "standard system beep" is sent
to the PC speaker.
Examples:
/********************************************************
Sound the PC speaker with a 1000-Hz signal for about 1
second (WINNT4/2000/XP ONLY)
********************************************************/
Sound(1000, 18)