I’m working with Lotus databases sending to Exchange email and I need last, first for the address fields in Outlook. Does anyone have lotus script code that will turn “John Doe” into “Doe, John”?
Subject: Swap first and last name
Awesome! Thanks so much!
Subject: If you are Sure that there will be only 2 names, its easy.
S1 = Split(FullName, " ")OName = S1(1) + ", " + S1(0)
The complicated part comes with names like “Sir John James Van Pelt” which should parse to:
Van Pelt, Sir John James
Subject: RE: If you are Sure that there will be only 2 names, its easy.
…unless, of course, “Van” is another middle name in that particular instance. You can be definitive about lower-case van, vander, von, de la, du, della, etc., but if the name’s spelling has been anglicised, you’re just guessing.