PostCode Function
Description:
A specific component of the postcode of a text that represents a UK address.
The components are:
- AREA: the area of the country; e.g. IP
- DISTRICT: the district within the area; e.g. IP18
- SECTOR: the sector within the district; e.g. IP18 6
- HALFSECTOR: the half-sector within the sector; e.g. IP18 6A
- FULL: the full postcode; e.g. IP18 6AX
Returns:
Text
Parameters:
Parameter | Data Type | Description |
|---|---|---|
1 | Text | The text. |
2 | Text | The postcode component. |
Examples:
When using functions inside a field, remember the field brackets:
{PostCode(BuyerAddress, Full)}
Expression | Result |
|---|---|
PostCode( "21 Station Road, Southwold IP186AX", "Full" ) | "IP18 6AX" |
PostCode( "21 Station Road, Southwold IP186AX", "District" ) | "IP18" |
PostCode( "21 Station Road, Southwold IP186AX", "Area" ) | "IP" |