Hi ernie,

Reading this it seems like you are trying to do two different things at the
same time. The snippet you pasted looks like Styled Text. But you say you
want a "plain text" document. But you also say you want to text to look the
same way it does on the screen.

You can't have it both ways, I'm afraid. Plain text means just that - only
the text. No formatting or anything. If you want the formatting you want to
either look at Rich Text Format (RTF) or think about 4D Write Pro. If you
want just the plain text you need to remove the styling before you write it
to disk. ST get plain text
<https://doc.4d.com/4Dv17R5/4D/17-R5/ST-Get-plain-text.301-4127727.en.html>
will help you with that.

Text to document is the suggested way to write the file.

On Mon, May 27, 2019 at 2:59 PM ernest hilgers via 4D_Tech <
[email protected]> wrote:

>
> the dialog-window has a button "Save" that needs to save what's in that
> text variable vMessage_t
> (visible to the operator in the dialogwindow) to a plain text document.
> The idea is, the content of the text file should look like what's seen on
> screen.
>

-- 
Kirk Brooks
San Francisco, CA
=======================

What can be said, can be said clearly,
and what you can’t say, you should shut up about

*Wittgenstein and the Computer *
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to