Greenman Posted September 8, 2011 Posted September 8, 2011 Small mess to clean up: I have two street address fields: street_1 and street_2. However, there are times when 2 street lines haven't been enough. Users have added two lines of text separated by hard return to either street_1 or street_2 indescriminately. (Unfortunately.) I need to find those fields with hard returns in them, and create new fields new_street_1, new_street_2 and new_street_3 based on the original street fields without damaging the original data so I can clean it up reliably. What script operation will work best to accomplish this goal? Is there a better way?
Raybaudi Posted September 8, 2011 Posted September 8, 2011 Show all records Go to Record [ first ] Loop Set Field [ YourTable::new_street_1 ; GetValue ( List ( YourTable::street_1 ; YourTable::street_2 ) ; 1 ) ] Set Field [ YourTable::new_street_2 ; GetValue ( List ( YourTable::street_1 ; YourTable::street_2 ) ; 2 ) ] Set Field [ YourTable::new_street_3 ; GetValue ( List ( YourTable::street_1 ; YourTable::street_2 ) ; 3 ) ] Go to Record [ next ; exit after last ] End Loop
Greenman Posted September 8, 2011 Author Posted September 8, 2011 Thanks! I'll give it a shot and report back. Again, Cheers!
Greenman Posted January 31, 2012 Author Posted January 31, 2012 Wow, I thought I'd reported back on this. It's a little late but it worked well. Better late than never. Thanks for the tip.
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