I'm sorry for the basic question, but this is something that I just cannot
figure out. I have a string object in the footer section of a report. The
string is not bound to any table but a data method. The method is of type
Display and returns a few sentences.
The problem is that the text does not go to the next line when I run the
report and it seems that it just go outside the page.
In C# I just use the \n to create a new line (i.e. "This is " + "\n" + "a
test") and this would create a new line. The example above does nto apply to
x++ .. why?
How can I create a new line for a string?
Thanks a lot
Hi,
Try this :
static void TokenEg(Args _args)
{
TextBuffer t;
t = new TextBuffer();
t.ignoreCase(true);
t.regularExpressions(false);
// Set the text to break in to tokens
t.setText("This is a test statement to check the token. this will
split the current sentence into tokens");
// The delimiter to search for when finding tokens is FullStop
while (t.nextToken(false,'.'))
{
info(t.token());
}
}
Regards,
AnithaSantosh
Hi,
Try this also.
I did the same in a data method of a report and it worked.
Sample is as follows:
display Addressing dispOtherTrms()
{
return ("1. No Part Shipment. " + "\n" +
"2. The Quantity and Value of the Commercial Invoice that
accompanies the shipment" +
" must match the quantity and value of the Purchase
Order." + "\n" +
"3. Commercial Invoice and Original Invoice should Tally"
+ "\n" +
"4. Billing and shipping should be on "+"\""+"
yyyy..."+"\""+ "only and not on "+ " \"" +
"XYZ,c/o ..." + "\"" + "\n" +
"5. Physical Shipment is mandatory for all License
Orders." );
}
Regards,
AnithaSantosh
str a = "1stLine"+"\r\n"+"2ndLine";
;
info(a);
--
Ruslan Goncharov
Ruslan Goncharov wrote:
Try these linesstr a = "1stLine"+"\r\n"+"2ndLine";;info(a);--Ruslan
25-May-10
Try these lines
str a = "1stLine"+"\r\n"+"2ndLine";
;
info(a);
--
Ruslan Goncharov
"Eduardo" wrote:
Previous Posts In This Thread:
On Monday, May 24, 2010 4:52 PM
Eduardo wrote:
New Line in String Object X++
Hi,
I am sorry for the basic question, but this is something that I just cannot
figure out. I have a string object in the footer section of a report. The
string is not bound to any table but a data method. The method is of type
Display and returns a few sentences.
The problem is that the text does not go to the next line when I run the
report and it seems that it just go outside the page.
In C# I just use the \n to create a new line (i.e. "This is " + "\n" + "a
test") and this would create a new line. The example above does nto apply to
x++ .. why?
How can I create a new line for a string?
Thanks a lot
On Tuesday, May 25, 2010 7:34 AM
Anitha Santosh wrote:
t"atoHi,Try this :static void TokenEg(Args _args){TextBuffer t;t =3D new
t
"a
to
Hi,
Try this :
static void TokenEg(Args _args)
{
TextBuffer t;
t =3D new TextBuffer();
t.ignoreCase(true);
t.regularExpressions(false);
// Set the text to break in to tokens
t.setText("This is a test statement to check the token. this will
split the current sentence into tokens");
// The delimiter to search for when finding tokens is FullStop
while (t.nextToken(false,'.'))
{
info(t.token());
}
}
Regards,
AnithaSantosh
On Tuesday, May 25, 2010 8:58 AM
Ruslan Goncharov wrote:
Try these linesstr a = "1stLine"+"\r\n"+"2ndLine";;info(a);--Ruslan
Try these lines
str a = "1stLine"+"\r\n"+"2ndLine";
;
info(a);
--
Ruslan Goncharov
"Eduardo" wrote:
Submitted via EggHeadCafe - Software Developer Portal of Choice
ASP.NET Providerless Custom Forms Authentication, Roles and Profile with MongoDb
http://www.eggheadcafe.com/tutorials/aspnet/27f836b7-2c9e-4942-9712-1c7b901cadcc/aspnet-providerless-custom-forms-authentication-roles-and-profile-with-mongodb.aspx