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

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

Recommended Posts

Posted

I accidentally wrote a script that added text to the end of a field of every record that I really wanted inserted in front of the fields existing text.

How do I undo this?

And do it properly?

Posted

To undo it:

Set Field [theFieldToBeFixed, Substitute(theFieldToBeFixed,"texttoberemoved","")]

to add text to the beginning of the field:

Set Field[theFieldToBeFixed, "New Text" & theFieldToBeFixed]

***** NOTE: ALWAYS DO A BACKUP BEFORE YOU DO MASS CHANGES *****

Posted

Bob,

Thanks. It took some doing (my brain), but I made them work.

In a related problem, I need to add a comma after text in a particular field of every record. I

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