Jump to content
Server Maintenance This Week. ×

Set Field to Self to Remove Formatting


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

Recommended Posts

I am try to write a simple script to set a field to itself to remove the text formatting before printing. Basically, I want to be able to select any field, run the script, and it will replace the text in that field.

Does anyone know if it is possible to to do this without having to create a unique script for each field? Is there a way to write the script so that no matter what field I select the script will be performed on the field selected.

Thanks for the help.

-Kevin

Link to comment
Share on other sites

If you want to remove formatting permanently, loop tru all fields (go to next field) and set the field to status(currentfieldcontent)

Go to field ["firstfield"]

Loop

Set Field[ "Status(currentFieldContent"] -- no field name here!

Go to next Field

Exit-Loop if [status(currentFieldname)="firstfield"

End-Loop

You can enlcose this loop in a loop for all records...

Link to comment
Share on other sites

I think the

Set Field[ "Status(currentFieldContent)"]

will work for me except some of my users are using 5.0. I this function available in 5.0? I couldn't find it in my funtion list.

If not is there a comparible function for 5.0 or should I just get these people to upgrade to 6? Thanks!

Link to comment
Share on other sites

since all fields are visible, you can also use

copy,select

paste without style, select

However, I have noticed that this does not work as expected on MacOS X. The format of the field is the format of the first letter.

Link to comment
Share on other sites

>since all fields are visible, you can also use

>copy,select

>paste without style, select

I tried this before and it actually helps to remove some of the formatting info, but curiously the Font and Size seem to not get stripped using this method in OS 9.2.

-Kevin

Link to comment
Share on other sites

well, since you may only handle some specific fields where users have copied data from another source, then do a find all, then

replace(specific field, specific field)

Link to comment
Share on other sites

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