statelookup(
STATE
)

The statelookup( function converts a two letter abbreviation for a US state into the full state name.


Parameters

This function has one parameter:

state – The two letter abbreviation for the state name.


Description

This function converts a two letter abbreviation for a US state into the full state name.

statelookup("CA") ☞ California
statelookup("CO") ☞ Colorado
statelookup("AB") ☞ AB

This function is identical to the statename( function, except for the fact that if the state does not exist, this function returns the original text instead of "".

Note: This function is equivalent to:

arraylookup(stateabbreviations(),upper(thestate),";",":",thestate)

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.