Alonso,
The code works for me. Usually the error message you are getting means that the API function has not been properly declared. Make sure the spelling and capitalization of your declaration exactly matches your call. Otherwise, Try;
DECLARE INTEGER WaveOutGetNumDevs IN WinMM
LOCAL lnDevices
lnDevices = WaveOutGetNumDevs()
IF lnDevices > 0
SET BELL TO FULLPATH( "startup.wav" )
?? CHR( 7 )
ENDIF
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.comNo trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.