Monday, May 14, 2012

Remove new line from text


display str 250 CompanyAddress()
{
    str 250 Address;
    TextBuffer txt = new TextBuffer();
;


    CompanyInfo = CompanyInfo::find();
    Address = companyInfo.postalAddress().Address;
    txt.setText(Address);
    txt.replace('\n',' ');
    Address = txt.getText();
    Address = Address + "  Company Registration Number " + CompanyInfo.BranchId + " Tax Registration Number " + Companyinfo.CoRegNum;



    return Address;
}

No comments:

How to identify the user that was used to change an object from AOT in AX2012

Get the object name for which we need to track these (user and date&time) information's. Login to SQL Server Management Studio an...