BEEP (sound tone on speaker)

Top  Previous  Next

 

BEEP( [sound] )

BEEP

Generates a sound through the system speaker.

sound

A numeric constant, variable, expression, or EQUATE for the Windows sound to issue.

The BEEP statement generates a sound through the system speaker. These are standard Windows sounds available through the [sounds] section of the WIN.INI file. Standard EQUATE values similar to these are listed in the EQUATES.CLW file:

 

BEEP:SystemDefault

 

BEEP:SystemHand

 

BEEP:SystemQuestion

 

BEEP:SystemExclamation

 

BEEP:SystemAsterisk

Example:

IF ERRORCODE()             !If unexpected error

BEEP(BEEP:SystemDefault)  !sound a standard beep

STOP(ERROR())             !stop for the error

END