<?xml version="1.0" encoding="utf-16"?><customize><COR_CUSTOM_FIELD U_RuleName="BUP_10154: Auto-fill first last name of contact" U_Type="0" U_Action="0" U_Warning=" " U_WarningText="" U_WarningBox=" " U_WarningStatus=" " U_Active="Y" U_FormTypeBasis="" U_ItemUIDBasis="" U_ColumnBasis="" U_FormType="134" U_ItemUID="107" U_Column="1" U_EventType="-2" U_Before=" " U_Mode="-1" U_Refresh=" " U_EasyFunctionRule="" U_ErrorBox=" " U_ErrorStatus=" " U_Creator="" U_LastModified="18.07.2012 16:34:50" U_LastModifiedBy="1" U_Permission=""><U_Expression>/****** General Information *****Creator: coresystems ag, emdCreate Date: 2010-06-30***** StartConfDesc *****This rule splits the Contact Name into two parts and automatically fills in the fields 'last name' and 'first name'***** EndConfDesc ********** Updates ******/string ruleName = pVal.RuleInfo.RuleName.ToString();string errorMessage = "Error in Optimizer Rule '" + ruleName + "'";try{		Matrix m = Matrix.GetFromUID(pVal.Form, "107");	string name = m.GetValue("1", 0).Trim();		int count = name.Length - name.Replace(" ", "").Length;		if (count &gt; 0) // does a space exist?	{		string[] myValues = name.Split(' ');				string firstName = "";		string lastName = "";				lastName = myValues[0];				if (count == 1)			firstName = myValues[1];		else if (count == 2)			firstName = myValues[1] + " " + myValues[2];		else			firstName = myValues[1] + " " + myValues[2] + " " + myValues[3];				m.SetValue("480000057", 0,lastName );		m.SetValue("480000059", 0, firstName );			}			else // if no space exist, assumption: it is only a first name	{		m.SetValue("480000057", 0, name);		m.SetValue("480000059", 0, "");	}	return true;	}catch (System.Exception exe){	StatusBar.WriteError(errorMessage + ": " + exe.Message);	Debug.WriteMessage(errorMessage + ": " + exe.Message, Debug.DebugLevel.Exception);}return true;</U_Expression></COR_CUSTOM_FIELD></customize>