BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can i use the " symbol?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Students)
View previous topic :: View next topic  
Author Message
Elisabeth Kvarnryd
Guest





PostPosted: Thu Apr 19, 2007 2:43 am    Post subject: How can i use the " symbol? Reply with quote



Hello.

Just a quick question.

I have a MemoBox and I want to add a line that looks like this: <div
align="center">

The problem is that it causes an error due to the double "":s
How can I solve this problem.

My code looks like this:
M2->Lines->Add("<div align="center">");


Cheers
E
Back to top
Ed Mulroy
Guest





PostPosted: Thu Apr 19, 2007 3:30 am    Post subject: Re: How can i use the " symbol? Reply with quote



Try changing
M2->Lines->Add("<div align="center">");
to
M2->Lines->Add("<div align=\"center\">");

The backslash is an escape key meaning to take the quote as a symbol and not
as the end of the character string.

.. Ed

Quote:
Elisabeth Kvarnryd wrote in message
news:462690d9 (AT) newsgroups (DOT) borland.com...

Just a quick question.

I have a MemoBox and I want to add a line that looks like this: <div
align="center"

The problem is that it causes an error due to the double "":s
How can I solve this problem.

My code looks like this:
M2->Lines->Add("<div align="center">");
Back to top
Elisabeth Kvarnryd
Guest





PostPosted: Thu Apr 19, 2007 3:32 am    Post subject: Re: How can i use the " symbol? Reply with quote



Wonderfull!!!
Thank you!

/E


"Ed Mulroy" <dont_email_me (AT) bitbuc (DOT) ket> skrev i meddelandet
news:46269c22$1 (AT) newsgroups (DOT) borland.com...
Quote:
Try changing
M2->Lines->Add("<div align="center">");
to
M2->Lines->Add("<div align=\"center\">");

The backslash is an escape key meaning to take the quote as a symbol and
not as the end of the character string.

. Ed

Elisabeth Kvarnryd wrote in message
news:462690d9 (AT) newsgroups (DOT) borland.com...

Just a quick question.

I have a MemoBox and I want to add a line that looks like this: <div
align="center"

The problem is that it causes an error due to the double "":s
How can I solve this problem.

My code looks like this:
M2->Lines->Add("<div align="center">");

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Students) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.