by Barry Chocolate (2 Submissions)
Category: Miscellaneous
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating:
(4 Votes)

tells you if a postcode you enter is a valid UK postcode. It includes all current criteria for a valid postcode including length, format and valid characters in each postition. see code for more info. Please note no other postcode checker on VBC currently checks the full criteria that this function/application does.
Inputs
Postcode passed as a string with a space seperating the outcode (first part of the postcode) and incode (second part of the postcode)
Assumes
The function can be copied into your own application
Code Returns
True if it is valid, false if it is not
Side Effects
A message box will be displayed notifying you if it is valid or invalid