473,395 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Bell Character

I want to get the ASCII Bell character (7) as a string. How? I'm pulliing
my hair out over the stupid little task. HELP!!!!!!!!! ARRRAGGH!
--
#####-----#####-----#####
POV Tips and Hints at ...
http://povman.blogspot.com/
May 31 '06 #1
3 13557
Josh,

You can do this:

string bell = new string((char) 7, 1);

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Josh" <s@a.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
I want to get the ASCII Bell character (7) as a string. How? I'm pulliing
my hair out over the stupid little task. HELP!!!!!!!!! ARRRAGGH!
--
#####-----#####-----#####
POV Tips and Hints at ...
http://povman.blogspot.com/

May 31 '06 #2
Hi Josh,
I want to get the ASCII Bell character (7) as a string. How?


Try this:

char bell = '\a'; // a for alert

or this:

char bell = '\u0007';

See these pages for details:

http://msdn.microsoft.com/library/de...spec_2_4_4.asp

http://msdn.microsoft.com/library/de...spec_2_4_1.asp

Good luck!

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
May 31 '06 #3
Thank you very much. I knew it had to be simple but my books and Google
were not doing it for me! Thanks, now all I need is some glue for my hair.

--
#####-----#####-----#####
POV Tips and Hints at ...
http://povman.blogspot.com/
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:Of**************@TK2MSFTNGP04.phx.gbl...
Josh,

You can do this:

string bell = new string((char) 7, 1);

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Josh" <s@a.com> wrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
I want to get the ASCII Bell character (7) as a string. How? I'm
pulliing my hair out over the stupid little task. HELP!!!!!!!!!
ARRRAGGH!
--
#####-----#####-----#####
POV Tips and Hints at ...
http://povman.blogspot.com/


May 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Baza | last post by:
Am I right in thinking that >>>print "\a" should sound the system, 'bell'? B -- Computer says, 'no'
2
by: Steve Drake | last post by:
All, Sorry if this is the wrong group, but I could not find a good group for this question, so I chose a busy developer group. When you receive an alert from SHAREPOINT, the ICON shows a BELL...
7
by: Dave Hammond | last post by:
You'd think this was an occasionally asked question, but a search for previous related posts only turned up one from 1999, and that one was never anwered. So... When handling a keypress event,...
2
by: MLH | last post by:
This question, I apologize, is more of a math question than it is an Access question - I'm almost certain. The bell curve is another name for the normal distribution, which is a common type of...
3
by: WizyDig | last post by:
I've looked every where for this answer and it seems so simple of a question. How do you disable the bell that dings when you press enter in a .NET windows app text box? Wiz *** Sent via...
3
by: Fred Nelson | last post by:
Hi: I have a vb.net web application running on an IIS server that has a sound card and VERY cheap speakers. I would like to know if there is a way to cause the speakers to make noice in the...
6
by: Csaba Gabor | last post by:
Is there a way in Mozilla/Firefox to ring the bell? For example, in Emacs or Notepad (on my Win XP Pro system) if you enter certain shortcuts (e.g. ^g or ^q, respectively), you get a sound to let...
12
by: bluesteel | last post by:
I was asked to make a program which rang a bell at certain at certain moments. The one way i can think of making it is by using a loop, but i should try to avoid using it and i don't have any idea. I...
3
by: fadger07 | last post by:
Hello, I have a packard bell laptop and when i turn it on the windows loading screen comes on for about 3mins and then goes to the packard bell screen, then reboots and starts all over again. i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.