The United Kingdom Postcode macro is used to insert United Kingdom postcodes into the strings generated by a data source using the Custom String data generator.
The macro is an analog of the United Kingdom Postcode data generator.
Syntax
The macro has the following syntax:
%UKPC(CodeFormat)
Parameters
CodeFormat
Specifies the format of the postcodes to be generated.
-
Specify
All
to generate postcodes using all the built-in formats. -
Specify the desired postcode format, using the following characters:
-
A
– corresponding to a random letter character. -
9
– corresponding to a random digit. -
Space
) – corresponding to a space.
-
Any other symbols are not available and will cause an error.
The parameter is case-sensitive. |
Examples
Postcode: %UKPC(A9 9AA)
Generates a string containing a postcode used in Birmingham, East London, Glasgow, Liverpool and so on.
Remarks
For more information on adding macros to custom strings, see About Custom String Generator.
For more information on general rules used for specifying macro parameters, see Custom String Generator Rules.
See Also
United Kingdom Postcode Generator
Custom String Generator
Macro Reference