Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!europa.chnt.gtegsc.com!howland.reston.ans.net!spool.mu.edu!uwm.edu!math.ohio-state.edu!news.cyberstore.ca!vanbc.wimsey.com!fonorola!news!dbuck
From: dbuck@infoweb.magi.com (David Buck)
Subject: Re: CR in string
Sender: news@magi.com
Message-ID: <DAyr4B.7pn@magi.com>
Date: Fri, 30 Jun 1995 02:04:59 GMT
References: <3sv8m3$hp0@news.ccit.arizona.edu>
Nntp-Posting-Host: infoweb.magi.com
Organization: Magi Data Consulting
Lines: 22

In article <3sv8m3$hp0@news.ccit.arizona.edu>,
Edwin Tsun <etsun@bigdog.engr.arizona.edu> wrote:
>hi
>	I am having trouble to embed carriage return into a string.
>	t1 := 'This is line 1', 'CR', 'This should be on line 2'
>	t1 := 'This is line 1', #CR, 'This should be on line 2'	
>	Both didn't work and actually put the word "CR" into the string.
>	Any ideas?

There are two ways to do this:

	t1 := 'This is line 1
This should be on line 2'.

and:

	t1 := 'This is line 1\This should be on line 2' withCRs

David Buck
dbuck@magi.com
The Object People

