Xbasic
CSTATE_ABREVLOOKUP Function
Syntax
Abbreviation as C = cstate_abrevlookup(C state_name )
Arguments
- Abbreviation
Two letter abbreviation.
- state_name
The full name of a US state or Canadian province.
Description
Returns the 2 letter state abbreviation for a state name. Also works for Canadian provinces.
Discussion
The CSTATE_ABREVLOOKUP() function returns the two character abbreviation for a US state or Canadian province.
Example
? CSTATE_ABREVLOOKUP("Vermont") = "VT"
See Also