473,327 Members | 1,896 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,327 software developers and data experts.

How to escape "{"

Hi:

How could I escape "{" in Console.Write(), i.e. I want output like -- { 1234
}, how could I do it in one Console.Write()?

thx.
Jul 21 '05 #1
4 1487
just double it

"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
Hi:

How could I escape "{" in Console.Write(), i.e. I want output like -- {
1234
}, how could I do it in one Console.Write()?

thx.

Jul 21 '05 #2
Actually, I try following:
Console.Write( "{{0}}", 12 ); //ok
Console.Write( "{ {0} }", 12 ); // throw exception.

I really want to write, after simplified, something like

class abc
{
public:
abc();
};

"Luc E. Mistiaen" wrote:
just double it

"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
Hi:

How could I escape "{" in Console.Write(), i.e. I want output like -- {
1234
}, how could I do it in one Console.Write()?

thx.


Jul 21 '05 #3
Thx, I got it

"Luc E. Mistiaen" wrote:
just double it

"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
Hi:

How could I escape "{" in Console.Write(), i.e. I want output like -- {
1234
}, how could I do it in one Console.Write()?

thx.


Jul 21 '05 #4
triple in your case, isn' it :-)

/LM

"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:2D**********************************@microsof t.com...
Thx, I got it

"Luc E. Mistiaen" wrote:
just double it

"Peter" <Pe***@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
> Hi:
>
> How could I escape "{" in Console.Write(), i.e. I want output like -- {
> 1234
> }, how could I do it in one Console.Write()?
>
> thx.


Jul 21 '05 #5

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

Similar topics

0
by: Lyn | last post by:
We use response.redirect to connect to an external web site which does not work when the "=" sign is translated to "%3B" and the ";" to "%3D". Is there a way to turn this default translation off?...
1
by: Lyn | last post by:
We use response.redirect to connect to an external web site which does not work when the "=" sign is translated to "%3B" and the ";" to "%3D". Is there a way to turn this default translation off?...
3
by: NecroJoe | last post by:
I am using PHP to generate a little javascript for one of my pages. In short it allows a user to select a value from a list and pop it into a form field on a seperate page. This works well unless...
5
by: Prince Kumar | last post by:
I am trying to escape the special characters while executing the following sql, but couldn't figure out a way. db2_all "db2 connect to mydb; db2 select * from table (SNAPSHOT_CONTAINER ( '' , -1...
2
by: Tim Marshall | last post by:
What is the docmd.runcommand accmd? for the equivalent of pressing the escape button when adding a record to a table? I'm setting up a bound form and would like to have a "cancel" button that...
5
by: Steven C | last post by:
Hello! I am trying to connect to a SQL Server (MSDE) database in mixed mode authentication, via C#, but when I use the MSDE instance name, I keep getting an "Unrecognized Escape Sequence"...
0
by: YiFai | last post by:
Hello, I'm currently writing a directx program with C++, but it takes a while to load the files necessary for the directx. When the directx window loads, it can quit the program with the...
4
by: Peter | last post by:
Hi: How could I escape "{" in Console.Write(), i.e. I want output like -- { 1234 }, how could I do it in one Console.Write()? thx.
0
by: Jeff Groves | last post by:
I'm using FreezePython on a Python program that uses wxPython and subprocess. The result almost works, but it always hits this bug: File "velauncher.py", line 847, in Launch File...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.