Click here to Skip to main content
15,063,287 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my project is coding system... the codes are to be shown in textbox through database... the problem is that i want my codes to automatically come in between brackets i.e. {}.... what is the coding to generate this?
for (int i=*, i<*)
{
? >>> here my code of else and if comes, that has to be automatic and comes within the brackets.
}
Posted

1 solution

If I understand you clearly.. you want the code to be {code} in the forloop.. so you can use it? If thats the case y dont you concat the code to the brackets

C#
for (int i=*, i<*)
{
code="{"+code+"}"
}

Reply with more details so I can help you.

Regards,
Ibrahim Karakira
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900