Doug Parkhurst Posted February 11, 2021 Share Posted February 11, 2021 Hello, I need to create a define that will pull out just the street address number (i.e. 13 Washington Street would return just 13). But the address number can vary in length from one digit to as many has five. Im currently working in 8206. Id like to do this without creating code. Thanks in advance Link to comment Share on other sites More sharing options...
David Beagan Posted February 11, 2021 Share Posted February 11, 2021 I went into InfoAssist using ibisamp/employee and created a Define field called ADDRESS_NUMBER : image.png1453989 178 KB Produces output: image.png672663 35 KB Link to comment Share on other sites More sharing options...
Warren Hinchliffe Posted February 12, 2021 Share Posted February 12, 2021 Yes, TOKEN is the best way, just be aware of any addresses that may not have a space after the number. Link to comment Share on other sites More sharing options...
Doug Parkhurst Posted February 12, 2021 Author Share Posted February 12, 2021 That did the trick! Ive never used the TOKEN function before, so this is a great how too. Thank you! Link to comment Share on other sites More sharing options...
David Beagan Posted February 12, 2021 Share Posted February 12, 2021 OK good. As Waz implies things could get tricky if addresses dont follow the pattern. If you have to do more on your own, see this post about documentation for the functions: Functions Reference You would want to focus on the chapters in the manuals titled Simplified Functions first. One other thing, if this Address Number is needed by many reports, it would make sense to define this in the metadata, master file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now