Hi everybody,
I am modifying a formula that has one or more names added to a variable with a "/" as delimeter. It needs to have all of the names sorted in alpha, I would like to split out the names, sort them and then join them back together again.
StringVar EmpNames;
// EmpNames contains "Smith, J/Jones B/Brown M"
// Next split out into array
split(EmpNames, "/"
// results in array with 3 names
sort array // not sure what to do here
join array // or here
StringVar EmpNamesOrdered
EmpNamesOrdered := array
As you can see I have the logic in place, but need some help with the array.
CR 8.5 Dev
I am modifying a formula that has one or more names added to a variable with a "/" as delimeter. It needs to have all of the names sorted in alpha, I would like to split out the names, sort them and then join them back together again.
StringVar EmpNames;
// EmpNames contains "Smith, J/Jones B/Brown M"
// Next split out into array
split(EmpNames, "/"
sort array // not sure what to do here
join array // or here
StringVar EmpNamesOrdered
EmpNamesOrdered := array
As you can see I have the logic in place, but need some help with the array.
CR 8.5 Dev