PDA

View Full Version : Problems with "\n"



Guga
08-10-2006, 08:25 AM
Does anybody know how can i write "\n" in the string,like a word?

Example:

no doubt = "C:\\My Music\\No Doubt\\"

and in label it looks like:

C:\My Music
o Doubt\

How can i write :

C:\My Music\No Doubt\:huh

????:huh

Help,please!!It's urgent!:yes :lol

mwreyf1
08-10-2006, 09:23 AM
I had the same problem once.

If you can, use a paragraph instead of a label.

It doesn't seem to be a problem when doing it that way.

Example:

nodoubt = "C:\\My Music\\No Doubt\\"
Paragraph.SetText("Paragraph1", nodoubt);

bule
08-10-2006, 09:52 AM
try this:


nodoubt = "C:\\My Music\\\No Doubt\\"

Lorne
08-10-2006, 10:42 AM
You've found a bug! Nice one. REF: 13510

In the meantime, I've come up with a workaround: use the SetProperties action to set the text instead.


Label.SetProperties("Label1", {Text="C:\\My Music\\No Doubt"});