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

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

Recommended Posts

Posted

I currently have a phone number field in my database which is in the standard phone number format = xxx-xxx-xxxx

I have a script that will copy the data in the phone number field into a PID field which works, but i was wondering how i could script this to remove the hyphens.

So for example the phone number field would read 123-456-7891. Once copied, it should read 1234567891.

Thanks

Posted (edited)

Filter (yourField; "0123456789")

You can also use the substitute function

Substitute (yourField; "-"; "")

Edited by Guest
added Substitute
Posted

Thank you for your response, after looking at the substitue line you added, it now makes sense and ive added to my scrit as setting the PID field as:

Substitute ( $PID ;"-" ; "" )

Works great, Thanks again!

Posted

Either one can be used in a script.

Set Field [Field2; Filter (Field1 ; 123456789 ) ]

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