| View previous topic :: View next topic |
| Author |
Message |
Elisabeth Kvarnryd Guest
|
Posted: Thu Apr 19, 2007 2:43 am Post subject: How can i use the " symbol? |
|
|
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
|
Posted: Thu Apr 19, 2007 3:30 am Post subject: Re: How can i use the " symbol? |
|
|
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
|
Posted: Thu Apr 19, 2007 3:32 am Post subject: Re: How can i use the " symbol? |
|
|
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 |
|
 |
|