You can try in C style, too:
 
 
str strA;
;
 
strA  = "My string is \
very loooonnnggg\n !\
";
print strA;
 
//result is:
My string is very loooonnnggg
 !
 
 
Regards,
 
Sonny Wibawa Adi

Steeve Gilbert <[EMAIL PROTECTED]> wrote:

That's a weird syntax:  And if you do info(s) it will come out that way in the infolog:

This is

A multiline

String

 

I didn't know about that one.

Thanks Morten!

Steeve...

 

-----Message d'origine-----
De : Morten Aasheim [mailto:[EMAIL PROTECTED]
Envoyé : 22 décembre 2004 09:21
À : Axapta-Knowledge-Village@yahoogroups.com
Objet : RE: [Axapta-Knowledge-Village] length of code per line and how to split it???

 

In 3.0 you can also have continous strings.

From developers handbook:

 

A new type of string literal has been added. Strings that are prefixed with the '@' character may span multiple lines. Thus:
Str s = @”This is
A multiline
String”;

 

 

Regards,

Morten 


From: Preston A. Larimer [mailto:[EMAIL PROTECTED]
Sent: 22. desember 2004 10:40
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: RE: [Axapta-Knowledge-Village] length of code per line and how to split it???

 

There is no special line continuation in x++, x++ is like c and c++ in that it ignores white space,  some time the editor will show an error when you first break a line, but once you finish the line out with a semicolon it should be good.  The one place you’ll have difficulty is long strings, if you want to have long string that is broken across multiple lines, use strfmt, or the + notation.

 

strX = strfmt(‘%1 %2’, ‘Hello’,

                                   ‘World’);

OR

 

strX = ‘Hello’ +

          ‘World’;

 

 

 

 


From: Joy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 21, 2004 11:51 PM
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: [Axapta-Knowledge-Village] length of code per line and how to split it???

 

Dear Friends,

 

I write a very looong code in one line, it doesn't finished yet, but i can't write it again, if i split it to 2 line, it comes an error.

 

Is there any syntax or addition code to split it to 2 line?

 

just for information, i'm using axapta 3.0 SP 3

 

Regards,

 

Joy

 

 



Sharing the knowledge on Axapta.



Sharing the knowledge on Axapta.




Sharing the knowledge on Axapta.





Sharing the knowledge on Axapta.



Do you Yahoo!?
The all-new My Yahoo! – What will yours do?

Sharing the knowledge on Axapta.


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to