Quantcast
Channel: Split full name into first, last and titles - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by AimusSage for Split full name into first, last and titles

To get the surname you can do something as follows:foreach (DataRow dr in spreadsheetdata.Tables["EPABase"].Rows) { var value = dr["FULLNAME"].ToString(); var elementsOfName = value.Split(""); var...

View Article



Answer by rjs123431 for Split full name into first, last and titles

If you are sure that First name or Last Name don't have space in it, you try something like this:string[] fullNames = { "John Smith", "Dr John Smith" }; string[] titles = { "Mr", "Mrs", "Dr" }; foreach...

View Article

Split full name into first, last and titles

example of the columnI have a column called FULLNAME which consists of a variation of FIRSTNAME and SURNAME separated by a space, and TITLE, FIRSTNAME and SURNAME, all separated by a space. So for...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images