Page 1 of 1

VL-WEB (V15) and a sound (Beep) when error

Posted: Thu Apr 10, 2025 5:51 pm
by kno_dk
Hi.

I would like to have a Beep Sound in my VL-WEB App if there is an error.

What is the best way to do that? Any examples?

/klaus

Re: VL-WEB (V15) and a sound (Beep) when error

Posted: Mon Apr 14, 2025 11:26 pm
by lawingo
Very simple.

1. place the Sound in your VL View

Define_Com Class(#PRIM_SOND) Name(#Sound1) Displayposition(3) Left(32) Parent(#COM_OWNER) Tabposition(3) Top(368) Visible(False)

2. Play the sound

#Sound1.FileName := 'error.wav'
#Sound1.Play

3. Make sure the Sounds are saved in the Lansa Production IFS Directory:

x_lansa\x_YourPartition\web\vl