Instead of a looping script, consider using Replace Field Contents with the calculation option to remove/modify text formatting. Perform a find first to pull up a found set of just those records where you want to do this.
Your auto-enter calc can be modified in two ways:
TextFormatRemove ( Self ) allows you to copy and paste the same expression into the auto-calc dialog for mutliple fields without needing to edit the names. And you can use a more sophisticated calc if you want the formats to be stripped selectively:
If ( OverrideField ; self ; TextFormatRemove ( Self ) )
Then, OverrideField can be set up as a number field with a single value check box that enters a 1 if clicked. When the user wants formatting to be retained they click the check box and then paste or format the text in the field.
Thanks for the reply. Wow, how did I overlook the obvious re table/field parameter. Must be holding out from my FMP6 days. I didn't reference the table properly, as you gently pointed out. After some play, it worked fine.
I'm trying to avoid the auto-calc option in the field definitions so I can leave individual records open to unusual formatting. I can't foresee needing that, but who knows how my client will want to tweak their MSDS entries. Something as simple as using bold or underline to emphasize parts of an individual section entry.
Works like a charm. No other records were harmed in the process -- only the one being viewed. All formatting stripped.