pellus
18th June 2014, 15:07
Hello, I have a text problem. LN fp7.
A text is sometimes formatted with RTF by the user . I get problems to get hold of the text content, for example to use in an xml-file?
Example:
We have 10 lines (with RTF-formatting) of which the last is "Thankyou and good night". Looks fine when looking at it in LN text editor.
I do a text.to.buf. In the receiving Array, occurence 10, I see only "Tha". All before is fine. But "Tha" is the last I get.
I read the tttxt010 directly. After the last Control characters in the last record, there is only "Tha"
So how can I get the all textlines, all 10 lines uncorrupted, to use.
There is a specific flag for rtf in text.to.buf -command but when I use this I get some unreadable data which I can not use.
A text is sometimes formatted with RTF by the user . I get problems to get hold of the text content, for example to use in an xml-file?
Example:
We have 10 lines (with RTF-formatting) of which the last is "Thankyou and good night". Looks fine when looking at it in LN text editor.
I do a text.to.buf. In the receiving Array, occurence 10, I see only "Tha". All before is fine. But "Tha" is the last I get.
I read the tttxt010 directly. After the last Control characters in the last record, there is only "Tha"
So how can I get the all textlines, all 10 lines uncorrupted, to use.
There is a specific flag for rtf in text.to.buf -command but when I use this I get some unreadable data which I can not use.