Page 1 of 1

read a rtf file

Posted: Mon Sep 20, 2010 4:41 pm
by jmburnod
Hi,

I tried to read a rtf file like that :

Code: Select all

   open file lePathNotesdev for read
   read from file lePathNotesdev until eof
   close file lePathNotesdev
   put the rtftext of it into fld "notes"
I have an error i believe is in "put the rtftext of it" but i don't know what

Thanks one more for your lights

Jean-Marc

Re: read a rtf file

Posted: Mon Sep 20, 2010 4:49 pm
by Klaus
Hi Jean-Marc,

"the rtftext" is a property of a field!
So you need to:
...
set the rtftext of fld "notes" to url("file:" & lePathNotesdev)
...

Best

Klaus

P.S.
You would have found this info also in the docs (Rev dictionary) under "rtftext"! 8)

Re: read a rtf file

Posted: Mon Sep 20, 2010 5:16 pm
by jmburnod
Hi Klaus,

You can say : "Elementary my dear JM"

And four lines less

Thank

Re: read a rtf file

Posted: Mon Sep 20, 2010 5:28 pm
by Klaus
A votre service, monsieur :)

Re: read a rtf file

Posted: Mon Sep 20, 2010 5:40 pm
by jmburnod
It is very confortable to know it

Best

Jean-Marc

Re: read a rtf file

Posted: Mon Sep 20, 2010 6:00 pm
by Klaus
:)