beep works in desktop apps; however, when trying to build with a console app I continue to get a ‘this item does not exist’ error using 2014r1. The language reference doesn’t specify any limitation on this method. Is this normal, or a bug?
Beep is not part of the console framework.
How about this one for a console beep?
Print ChrB(7)
http://documentation.xojo.com/index.php/Beep
lists this as desktop only
[quote=78771:@Norman Palardy]http://documentation.xojo.com/index.php/Beep
lists this as desktop only[/quote]
Well, to be fair, only as of this morning.
[quote=78723:@Thomas Eckert]How about this one for a console beep?
Print ChrB(7)[/quote]
That works great !
I had found another one for web :
dim s as new shell
dim f as FolderItem = app.ExecutableFile.Parent.Parent.child("chimes.wav")
s.execute "afplay "+f.ShellPath
I placed chimes.wav
that comes from Xojo 2014r1/Example Projects/Graphics and Multimedia/Sound in the same folder as my app.
Beep is rather convenient to quickly alert, without resorting to a msgbox (that does not exist for console).
That will play on the server - not the client
if DebugBuild then
dim s as new shell
dim f as FolderItem = app.ExecutableFile.Parent.Parent.child("chimes.wav")
s.execute "afplay "+f.ShellPath
end if