BEEP

From QB64 Wiki
Revision as of 03:35, 11 October 2010 by imported>Clippy
Jump to navigation Jump to search

The BEEP statement produces a beeping sound through the PC speaker if it has one.


Description

  • BEEP can be placed anywhere to alert the user that there is something to do or an error has occurred.
  • ASCII control character 7 can also create a BEEP sound when you PRINT it (See CHR$).
  • In Windows it may produce a "thunk" warning sound when a Qbasic program is running in a SCREEN 0 window.
  • Newer PC's may not have an internal speaker to hear ANY Qbasic sounds!
  • QB64 produces the actual "beep" sound through the PC's stereo speakers.


Examples

Example: Creating two beep sounds using BEEP and printing the ASCII control character 7.

BEEP PRINT CHR$(7)



See also



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page