ParseLastFirstIniNames

Parses the name information in the first line of an address superfield.

Member of namespace:

MC_Validation

Syntax:

bool ParseLastFirstIniNames(StrParam)

Parameters

These comma separated parameters:
  1. The name of the Last Name Field object.
  2. The name of the First Name Field object.
  3. The name of the Middle Name or Middle Initial object.
  4. The name of the Credential Field object.
  5. The name of the Suffix Field object.

Returns

False, if the parameter values are invalid. Otherwise, True.

Level

Field level.

Details

This action parses the name information in the first line of an address superfield.

The action parses the value of the full name into the Last, First, and MiddleName/Initial fields that are specified by the parameter. In the absence of any explicit pattern, such as a punctuation mark or a middle initial, parsing defaults to First Middle Last. A parameter value of -1 in the argument changes this default in the absence of any explicit pattern to Last First.

Example:

For form fields where the instructions specify First Middle Last:

ParseLastFirstIniNames(8plname,8pfname,8pminit)

For form fields where the instructions specify Last First Middle:

ParseLastFirstIniNames(17RelLNam,17RelFNam,17RelMini,
17RelCred,17RelSufx,-1)