kmerritt Posted June 3, 2003 Posted June 3, 2003 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
cjaeger Posted June 3, 2003 Posted June 3, 2003 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...
kmerritt Posted June 3, 2003 Author Posted June 3, 2003 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!
cjaeger Posted June 3, 2003 Posted June 3, 2003 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.
kmerritt Posted June 3, 2003 Author Posted June 3, 2003 >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
cjaeger Posted June 3, 2003 Posted June 3, 2003 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)
Recommended Posts
This topic is 8190 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 accountSign in
Already have an account? Sign in here.
Sign In Now