Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4680 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

Posted

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

  • 4 months later...

This topic is 4680 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.