Options

ASCII beep

Jan_LathouwersJan_Lathouwers Member Posts: 23
Is it possible to store ASCII value 7 (terminal beep) in a database table? I am accessing a navision database through a terminal and want to let the terminal beep. Any suggestions?

Comments

  • Options
    sggsgg Member Posts: 109
    if you just need the client to beep, then use the following:

    BEEP(Frequency, Duration)

    e.g

    BEEP(300, 100) will beep the sound of 300Hz for 100 Miliseconds(1 Second)

    You get BEEP from
    C/AL symbol Menu -> DIALOG -> Functions -> BEEP
    Sunday, Godwin G
  • Options
    Jan_LathouwersJan_Lathouwers Member Posts: 23
    It is not the client that has to beep, it's the VT100 terminal...
  • Options
    lubostlubost Member Posts: 616
    Can you redefine the ASCII code 7 mapping for the operating system your terminal is connected to, to another printabkle character.
  • Options
    jmjm Member Posts: 156
    Hallo,

    try this code in a codeunit:
    OnRun()
    BeepString[1] := 7;
    ShellExec('echo '+ BeepString);
    
    SLEEP(3000);
    
    BeepChar := 7;
    ShellExec('echo '+ FORMAT(BeepChar));
    
    and this function in the Codeunit:
    ShellExec(piExecCommand : Text[250])
    SHELL('cmd','/c',piExecCommand);
    

    with following definitions:
    Name           DataType      Subtype       Length
    BeepString     Text                        1
    BeepChar       Char
    
    br
    Josef Metz
    br
    Josef Metz
Sign In or Register to comment.