Last active
May 6, 2025 16:45
-
-
Save jimbrig/9a8560f77eb0a6e1df90879a25c10694 to your computer and use it in GitHub Desktop.
GMH Data Model Address Module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --- AddressTools Module --- | |
// Module containing Lambdas for working with Addresses. | |
/* | |
* Extract the Street from an Address | |
*/ | |
AddressStreet = LAMBDA(address, LEFT(address,FIND(",",address)-1)); | |
/* | |
* Extract the City from an Adderss | |
*/ | |
AddressCity = LAMBDA(address, TRIM(MID(address,FIND(",",address)+1,FIND(",",address,FIND(",",address)+1)-FIND(",",address)-1))); | |
/* | |
* Extract the State from an Address | |
*/ | |
AddressState = LAMBDA(address, TRIM(MID(address,FIND(",",address,FIND(",",address)+1)+2,2))); | |
/* | |
* Extrct the Post Code from an Address | |
*/ | |
AddressPostalCode = LAMBDA(address, RIGHT(address, 5)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment