I'm sending ASCII characters to a text window. I call a subroutine with the integer value of the ASCII character (0-127), and the subroutine uses CHAR to convert to a character, then appends the character to the end of a buffer that's being displayed in the text window, and update. All is well and good, it works. Printable ones appear as though the window were a console of some kind, no problem. Even the CR/LF combo performs as expected - very cool.
When I send it a 7, which is the ASCII 'BEL' character, I'd like the computer to go 'beep'. It doesn't - I just get a small black block for that character in the text window. I can suppress the black block easily enough. But how do I make the computer go 'beep'? The HELP file describes some kind of BEEP function, and uses it in a line where a button is pressed to go 'beep'. But I'm not using a button-press to do this. How to simply produce a 'beep' sound?
Thanks all!
ON EDIT:
I'm using FTN95, of course.
After fiddling with it for a while, I found that including <windows.ins> in the subroutine, and using the statement LB=BEEP('EXCLAMATION',J) where J is an integer and LB is a logical variable, it compiles without error and runs just fine... except I still don't hear any beeps when that statement is executed. (I put a PRINT statement right before it, and I can see the printed stuff just fine, so it's definitely executing this statement too).
Is there some place in the HELP files that explains how to use this function?