Below is my code to display a name in the report.
My issue is the name starts with a space in the front.
Please help
select firstonly busRel
where busRel.Name Like "Contoso Ax -*" && busRel.Dimension[2] == salestable::find(custPackingSlipJour.SalesId).Dimension[2];
strDivider = busRel.Name;
_list = Global::strSplit(strDivider,"-");
iterator = new ListIterator(_list);
while(iterator.more())
{
packedList += iterator.value();
iterator.next();
}
if(conPeek(packedList,3))
{
Div = conPeek(packedList,2)+'-'+conPeek(packedList,3);
}
else
{
Div = conPeek(packedList,2);
}
return Div;
}