472,802 Members | 1,286 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,802 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 1458
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
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.