getname
getname
FULLNAME
,
PREFIX
,
FIRST
,
MIDDLE
,
LAST
,
SUFFIX

The getname statement divides a person’s full name into separate components.

Parameters

This statement has six parameters:

fullname – is text containing a person’s full name.

prefix – is a field or variable that will hold the separated name prefix (if any).

first – is a field or variable that will hold the separated first name.

middle – is a field or variable that will hold the separated middle name (if any).

last – is a field or variable that will hold the separated last name.

suffix – is a field or variable that will hold the separated name suffix (if any).

Description

The getname statement divides a person’s full name into separate components – first name, last name, etc. There are five possible components: 1) prefix (Mr, Ms, Senor etc.), 2) first name, 3) middle name (or initial), 4) last name, and 5) suffix (Jr, Sr, Dr etc.)

    getname "colonel theodore h. roosevelt jr",Prefix,First,Middle,Last,Suffix

This namewill be split into five components like this:

    Prefix ☞ Colonel
    First ☞ Theodore
    Middle ☞ H.
    Last ☞ Roosevelt
    Suffix ☞ Jr

See Also

- getaddress -- divides the last line of an address into separate components.
- getcitystatezip -- divides the last line of an address into separate components.
- splitlines -- takes a chunk of text and splits it into two or more smaller chunks.

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0.