Brian Dunning's FileMaker Custom Functions

ValidateUKPostcode

UK Postcode Validation

  Average rating: 4.6 (25 votes) Log in to vote

ThomasSeidler   ThomasSeidler - Show more from this author
The Good Book Company Ltd
http://www.thegoodbook.co.uk

Share on Facebook Share on Twitter

  Sample input:
ValidateUKPostcode( "WC1A 1AA")
ValidateUKPostcode( "XX1 Y8A")
  Sample output:
1
0

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Validates UK postcode by crude rule base provided in Wikipedia

[updated to make sure it worked!! :)]

 

Comments

Tom Hames   Tom Hames, B&P Fabrications
Apr 18, 2019
Hi there,

I have Copied your link and pasted into functions, with the Parameter "FilterC", however when I click ok it says it is expecting A number, A Text Constant etc and is highlighting the first bracket. Any Clues?

Let ( [
_postcode = FilterC ( Upper(_postcode) ; "AZ09" ) ;
 
Tom Hames   Tom Hames, B&P Fabrications
Apr 18, 2019
The first bracket after "FilterC"
 
Tom Hames   Tom Hames, B&P Fabrications
Apr 18, 2019
The first bracket after "FilterC"
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: