BEEP: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
No edit summary |
(Add v4.0.0 specific changes) |
||
Line 1: | Line 1: | ||
The | {{DISPLAYTITLE:BEEP}} | ||
The '''BEEP''' statement produces a beep sound through the sound card. | |||
{{PageSyntax}} | {{PageSyntax}} | ||
: | : '''BEEP''' | ||
{{PageDescription}} | {{PageDescription}} | ||
* | * The '''BEEP''' statement can be used anywhere in the code to alert the user that there is something to attend to or an error has occurred. | ||
* | * QB64 produces the actual "beep" sound through the PC's sound card, emulating QBasic's beeping through the [[Wikipedia:PC speaker|PC speaker]]. | ||
=== | |||
* Older programs may attempt to produce a | {{PageAvailability}} | ||
** | <!-- QB64 = a version or none, QBPE = a version or all, Platforms = yes or no --> | ||
<gallery widths="48px" heights="48px" mode="nolines"> | |||
File:Qb64.png|'''all''' | |||
File:Qbpe.png|'''all''' | |||
File:Apix.png | |||
File:Win.png|'''yes''' | |||
File:Lnx.png|'''yes''' | |||
File:Osx.png|'''yes''' | |||
</gallery> | |||
<!-- additional availability notes go below here --> | |||
* Older programs may attempt to produce a beep by printing [[CHR$]](7) to the screen. This functionality is no longer supported in QB64 after '''version 1.000'''. | |||
** To maintain the legacy functionality, you may need to replace instances of [[PRINT]] [[CHR$]](7) in older programs with the '''BEEP''' statement. | |||
* QB64-PE v4.0.0 restores beeping functionality using [[PRINT]] [[CHR$]](7). | |||
Revision as of 14:40, 22 November 2024
The BEEP statement produces a beep sound through the sound card.
Syntax
- BEEP
Description
- The BEEP statement can be used anywhere in the code to alert the user that there is something to attend to or an error has occurred.
- QB64 produces the actual "beep" sound through the PC's sound card, emulating QBasic's beeping through the PC speaker.
Availability
- Older programs may attempt to produce a beep by printing CHR$(7) to the screen. This functionality is no longer supported in QB64 after version 1.000.
- QB64-PE v4.0.0 restores beeping functionality using PRINT CHR$(7).
See also