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

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

Recommended Posts

Posted

Thanks to everyone here I am getting my text calculation right

The last thing I don't understand is how to remove something extra

I ended up with a field in my address calculations that contains the

county name and the county code.

I want to eliminate the county code which is always 7 characters including the parenthesis in the front and back .

for example

Orleans (36073)

I want to remove the county code at the end only

I am not sure how to do this

Thanks

Dave

Posted

Left(textfield, Length(textfield)-Lenght(" (36073)")) or

Left(textfield, Length(textfield)-8)) or

Left(textfield, position(textfield," (",1,1)-1)) ....

Posted

Set up a script:

Set Field ["fieldname", Replace( fieldname, Position( fieldname, "(" , "(" , 1) , 7 , "")]

replace fieldname with the name of the field that contains the county name and county code of course!

This sets the field to the original contents of the field but replaces 7 didgits after the ( with "" (nothing)

If you want to do this for every record in your db just add find all to your script and set it in a loop to go to next field, exiting after last.

Eddy.

This topic is 7870 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.