top of page

34. Full Name

Description

Combine various name elements into a full name.

Code

""
IF ANSWERED( Prefix )
"«Prefix» "
END IF

RESULT + "«FirstName»"

IF ANSWERED( MiddleName )
RESULT + " «MiddleName»"
END IF

RESULT + " «LastName»"

IF ANSWERED( Suffix )
RESULT + ", «Suffix»"
END IF

Explanation

All name elements are text variables. It is assumed that every person will have at least a first and a last name. The other name elements are optional, and are included in the output only if answered: Prefix (Dr., Mr., Ms., etc.), MiddleName, and Suffix (Jr., Sr., II, III, Esq., M.D., etc.). The Suffix could optionally be made into a multiple choice variable. If so, be sure to allow an "Other" option.

bottom of page