Reading RTF file

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
NigelS
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 83
Joined: Sat Oct 22, 2011 2:37 pm

Reading RTF file

Post by NigelS »

Hi All

How do I load a RTF file into a field without the control characters showing. I've tried using

Code: Select all

put url("binfile:" & tMessageTitle) into field "MessageText"
and

Code: Select all

put url("file:" & tMessageTitle) into field "MessageText"
Thx
bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 937
Joined: Fri Aug 15, 2008 7:15 am

Re: Reading RTF file

Post by bangkok »

Code: Select all

put url("binfile:" & tMessageTitle) into myFile
set the rtftext of fld "MessageText" to myFile
:)
NigelS
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 83
Joined: Sat Oct 22, 2011 2:37 pm

Re: Reading RTF file

Post by NigelS »

Thank you... while I was away I tried something else after reading a little and resolved it. As they say in the IT industry. R.T.F.M.
But I do appreciate your reply.
Post Reply