Saving a tab formatted field to a file and retaining its formatting

Bob Sneidar bobsneidar at iotecdigital.com
Mon Apr 8 11:42:28 EDT 2019


I just tested with htmltext. Tab stops are NOT preserved. 

Bob S


> On Apr 8, 2019, at 07:55 , Paul Dupuis via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> On 4/7/2019 9:00 PM, Paul Dupuis via use-livecode wrote:
>> I take it your have tried:
>> 
>> put the rtfText of field "X" into URL ("file:"&specialFolderPath("desktop")&slash&"savedfield.rtf")
>> 
>> And then reading it back to a new field with:
>> 
>> set the rtfText of field "Y" to URL ("file:"&specialFolderPath("desktop")&slash&"savedfield.rtf")
>> 
>> and the tab spacing is not preserved?
>> 
> 
> If the rtfText does nto preserve the tabstops, the htmlText should preserve the tabstops. See the dictionary entry for the htmlText property of a field.





More information about the Use-livecode mailing list