CanadaPostalCodeFix ( "input" )
Standardized formatting of inputted Canadian postal code to A1A 1A1
Be the first to rate this function Log in to vote
|
RealGrouchy - Show more from this author
https://realgrouchy.blogspot.com |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
This function takes user-provided input and attempts to convert it to Canadian postal code format A1A 1A1, ensuring all "A"s are uppercase letters, all "1"s are numbers, and there's a space between the two groups of 3.
e.g. PostalCodeFix ( "a1a1a1" ) results in "A1A 1A1"
If the entered input isn't consistent with a Canadian postal code, it will just return the input uppercase.
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.