Jump to content
Sign in to follow this  
kmerritt

Set Field to Self to Remove Formatting

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

Share this post


Link to post
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...

Share this post


Link to post
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!

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.