Re: How can I strip away formatting from an RTF file?

2015-07-08 Thread Gregory Lypny
Thanks everyone! Paste the RTF field into another field: formatting gone. Gregory ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists

Re: How can I strip away formatting from an RTF file?

2015-07-08 Thread Devin Asay
On Jul 8, 2015, at 12:20 PM, J. Landman Gay wrote: I usually skip the intermediary and just do: > > set the RTFText of field "File Text" to url ("file:" & longFileName) > put fld "File Text" into fld "File Text” Right, that works, and is the least messy way if you don’t need to hang on to the

Re: How can I strip away formatting from an RTF file?

2015-07-08 Thread Devin Asay
On Jul 8, 2015, at 11:58 AM, Richard Gaskin wrote: > Replacing a single character should ideally only affect the text style for > that character, even if it occurs in multiple places, so personally I would > consider the second example a bug if it strips all styles from unaffected > portions

Re: How can I strip away formatting from an RTF file?

2015-07-08 Thread J. Landman Gay
On 7/8/2015 12:31 PM, Devin Asay wrote: Another trick I’ve learned (unless it’s been changed recently) is thatusing ‘replace’ on a field strips formatting. replace space with space in fld “myRTF” I usually skip the intermediary and just do: set the RTFText of field "File Text" to url ("

Re: How can I strip away formatting from an RTF file?

2015-07-08 Thread Richard Gaskin
Devin Asay wrote: > On Jul 8, 2015, at 11:24 AM, Gregory Lypny wrote: >> >> I imported an RTF file and put it into a field using >> >> set the RTFText of field "File Text" to url ("file:" & >> longFileName) >> >> Of course, the text in the field is formatted as in the file that >> was imported.

Re: How can I strip away formatting from an RTF file?

2015-07-08 Thread Thierry Douez
2015-07-08 19:24 GMT+02:00 Gregory Lypny : > Hi everyone, > > I imported an RTF file and put it into a field using > >set the RTFText of field "File Text" to url ("file:" & longFileName) after your line of code, do: put fld "File Text" into fld "File Text" HTH, Thierry __

Re: How can I strip away formatting from an RTF file?

2015-07-08 Thread Devin Asay
On Jul 8, 2015, at 11:24 AM, Gregory Lypny wrote: > Hi everyone, > > I imported an RTF file and put it into a field using > > set the RTFText of field "File Text" to url ("file:" & longFileName) > > Of course, the text in the field is formatted as in the file that was > imported. How can I

How can I strip away formatting from an RTF file?

2015-07-08 Thread Gregory Lypny
Hi everyone, I imported an RTF file and put it into a field using set the RTFText of field "File Text" to url ("file:" & longFileName) Of course, the text in the field is formatted as in the file that was imported. How can I import the text while stripping away the formatting, which I do not