getaddress
RAW
,
ADDRESS
,
CITY
,
STATE
,
ZIP
,
COUNTRY

The getaddress statement divides the last line of an address into separate components.


Parameters

This statement has six parameters:

raw – is text containing the combined address, city, state, and zip and country information in one line.

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

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

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

zip – is a field or variable that will hold the separated zip or postal code.

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


Description

The getaddress statement analyzes text containing an address, city, state, zip code and country, then separates the text into the individual components. The easiest way to understand this is by looking at a few examples. Here is a basic US address:

getaddress "692 dorothy lane"+cr()+"92831",Address,City,State,Zip,Country

This will be split into six components like this:

Address ☞ 692 Dorothy Lane
City ☞ Fullerton
State ☞ CA
Zip ☞ 92831 
Country ☞  

The statement considers all but the last line to be the street address. The last line is parsed into separate components by the getcitystatezip statement, see the help page for that statement for details.


See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.