| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Sounds a speaker tone with specific tone frequency and duration.
Tone( <nFrequency>, [<nDuration>] ) --> NIL
The function returns always NIL.
Tone() is a compatibility function used to produce a speaker tone of defined frequency and duration.
| See also: | Chr(), SET BELL |
| Category: | Environment functions |
| Source: | rtl\tone.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
// The example shows a user-defined function that alerts a user
// when an error condition occurs.
FUNCTION ErrorBeep()
Tone( 1000, 1 )
Tone( 1000, 2 )
RETURN NIL
http://www.xHarbour.com