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

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

Recommended Posts

Posted

Hi guys -- I've a number field with numbers ranging from 3 digits up to 16 or sometimes more. Some of the numbers start with 14 and I need a script that removes such 14 and leaves the rest of the string as is.

In other words, removes the first 2 diigts as long as they are 14.

BTW, I've FM 5.5 running on SL 10.6.8.

Posted

Use the Set Field step, or use this calculation in a Replace dialog:

Case(

left( textfield , 2 ) = "14" ,

right( textfield , length( textfield ) - 2 ) ,

textfield

)

  • Like 1
Posted

Use the Set Field step, or use this calculation in a Replace dialog:

Case(

left( textfield , 2 ) = "14" ,

right( textfield , length( textfield ) - 2 ) ,

textfield

)

Thanks mate! :laugh2:

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