Description
Read-only. Returns a value indicating the given object's address component type. The value returned is from the following list:
Value |
Description |
---|---|
PART_NONE |
Not an address component |
PART_TITLE |
Honorific Title |
PART_FIRST |
First Name |
PART_MIDDLE |
Middle Name |
PART_LAST |
Last Name |
PART_COMPANY |
Company Name |
PART_ADDRESS1 |
Primary Delivery Line |
PART_ADDRESS2 |
Secondary Address Line |
PART_CITY |
City |
PART_STATE |
State or Territory |
PART_ZIP |
Zip Code |
PART_ZIP4 |
Zip Code Add On |
PART_PHONE |
Phone Number |
PART_AUX1 |
Auxiliary 1 |
PART_AUX2 |
Auxiliary 2 |
PART_AUX3 |
Auxiliary 3 |
Applicable Events
Post Extract, AnyApp Post Extract, Pre-Verify, Interactive, Verification Function Key (F-Key), Post-Verify
Syntax
object.AddressType
Parameters
Object is a reference to a Zone or a Line object. For more information, see Zone Object (page Zone Object) and Line Object (page Line Object).
AddressType is the command.
Example
nType = ZoneAddress.Line(1).GetAddressType
if nType = PART_FIRST then
strFirst = ZoneAddress.Line(1).Value
elseif nType = PART_LAST then
strLast = ZoneAddress.Line(1).Value
elseif nType = PART_CITY then
strCity = ZoneAddress.Line(1).Value
elseif nType = PART_STATE then
strState = ZoneAddress.Line(1).Value
elseif nType = PART_ZIP then
strZip = ZoneAddress.Line(1).Value
end if