Re: How can I incorporate carriage return (Chr(13) between 2 strings ?
- From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Sat, 25 Oct 2008 09:49:39 -0500
Patrick Santoni wrote:
I have one string S1= “The life is beautiful”
the secund one is string S2= “but there is nowdays an economic
crisis.”
I wish to put S1 +carriage return +S2 into FTC window
so how can I incorporate carriage return (Chr(13) between S1 ans S2 ?
If i create S=S1+chr(13)+S2, there is no carriage return in fact.
In the FTC carriage returns (CR) are represented by paragraphs
(FTParagraph). So within the text of a paragraph you would not
have an embedded CRs (it would not make sense). So a string that
contains CRs needs to be parsed and split into paragraphs. There
are several ways to do this. Use the setText or insertString
methods. They will automatically parse the CRs and create the
paragraphs for you. Also see page 16 in the user guide on adding
text.
FTC Website:
http://www.truenorthsoftware.com/FormattedTextControl/FormattedTextControl.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in
the subject field.
- References:
- How can I incorporate carriage return (Chr(13) between 2 strings ?
- From: patrick santoni
Other related posts:
- » How can I incorporate carriage return (Chr(13) between 2 strings ?
- » Re: How can I incorporate carriage return (Chr(13) between 2 strings ?
I have one string S1= “The life is beautiful”the secund one is string S2= “but there is nowdays an economic crisis.”
I wish to put S1 +carriage return +S2 into FTC window so how can I incorporate carriage return (Chr(13) between S1 ans S2 ? If i create S=S1+chr(13)+S2, there is no carriage return in fact.
- How can I incorporate carriage return (Chr(13) between 2 strings ?
- From: patrick santoni