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.


Yahoo! Groups Sponsor

Get unlimited calls to

U.S./Canada



Yahoo! Groups Links

Reply via email to