CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Line Breaks

Print topic Send  topic

Author Message
DataDoIt
Posted: 04/08/2004, 11:53 AM

CCS2; PHP; MySQL

How can I put a line break in a label control?

$Label1->SetValue('This is the first line.\nThis would be the second
line.');

However, the above is taken literally instead of escaping.

DataDoIt
Posted: 04/08/2004, 11:57 AM

Ne'er mind. I found it. The trick was to use double-quotes instead of
single-quotes in the SetValue parameter.

$Label1->SetValue("This is the first line.\nThis is the second line.");



"DataDoIt" <mike@datadoit.com> wrote in message
news:c54741$5hr$1@news.codecharge.com...
> CCS2; PHP; MySQL
>
> How can I put a line break in a label control?
>
> $Label1->SetValue('This is the first line.\nThis would be the second
> line.');
>
> However, the above is taken literally instead of escaping.
>
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.