Topic: Beep
Hello MVD!
Is there a possibility to have a sound or beep after a command pass?
My Visual Database → General → Beep
Hello MVD!
Is there a possibility to have a sound or beep after a command pass?
Hi Manix,
Probably more than one way but I've always done it like this (see attached).
In this example, I've associated a beep with a button click but you can attach it to any action, calculated result etc.
Hope this helps,
Derek.
THank You so Much!
Hi Derek,
Thanks for the beep sample for manixs.
I have tried to apply it to a field such as:
procedure Form2_TableGrid1_OnClick (Sender: string);
begin
if not (Form2.ComboBox2.Text = '') then Beep(600,1000);
end;
but couldn't get it working?
What I wanted to do is, if combobox2 contains a value, it'd beep on display of the record, if empty no beep.
Would you be so kind to correct my attempt please?
Hi Adam,
Not sure without seeing your project, but attached is (I think) what you want. If you want it to beep when the combobox is empty rather than contains a value, just reverse the condition in the script.
Regards,
Derek.
Hi Derek,
Thank you very much...............
Truly appreciated....................
I was trying to use it as a bleeper when browsing the records. Your line of the code below did the job:
procedure Form2_TableGrid1_OnClick (Sender: string);
begin
myscroll;
if Form2.combobox2.itemindex > -1 then beep(500,300);
end;
In fact you did more than what I was trying to ask. I'm not complaining. I'm sure additional stuff you have added will become handy in other projects. Thanks again............
My Visual Database → General → Beep
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi