Display Address from multiple to single line in MSD axapta

Display Address from multiple to single line in axapta

Mostly we face issue to Display Address from multiple to single line in axapta report in Ax 2009 . Following is the way to do it very easily.


Code snaps is as below..


 str lineall;  
 ;  
 lineall =lineall +strline(CompanyInfo::find().Address,0);  
 lineall =lineall +strline(CompanyInfo::find().Address,1);  
 lineall =lineall +strline(CompanyInfo::find().Address,2);  
 lineall =lineall +strline(CompanyInfo::find().Address,3);  
 lineall =lineall +strline(CompanyInfo::find().Address,4);  
 lineall =lineall +strline(CompanyInfo::find().Address,5);  
 return lineall;