Simple method to put LastName first and FirstName last from CommonUserName
This tip describes a procedure to put LastName first and FirstName last from CommonUserName.
This tip describes a simple way to turn a CommonUserName into LastName , FirstName MiddleInitial.
rs := @ReplaceSubstring(@Name ([CN]; @UserName); " "; ";");
exp := @Explode(rs; ";"; 0);
ele := @Elements(exp);
@If(ele=3; @Subset(exp; -1) + " , " + @Subset(exp; 1) + " " + @Subset(@Subset (exp; 2); -1);
@Subset(exp; -1) + " , " + @Subset(exp; 1))