Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

insert square brackets in a label

Status
Not open for further replies.

pbuddy2007

Technical User
Feb 9, 2008
17
0
0
CA
I need to have a label say : your "name" is , including the brackets.

but when I code label.caption = "your "name" is "
I get an error message beause I use too many brackets. I know there's a way to hard code brackets in a string or label but I completely forgot how...
 
You can include quotes within a string literal by escaping them through doubling:
Code:
Label.Caption = "your ""name"" is "
 
BTW, the following are brackets:

()[]

You are talking about quotation marks.

 
Just enter your "name" is in the caption field of the property window.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top