Re: Writing a line feed and carriage return

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Ben (no_at_spam.com)
Date: 02/24/05


Date: Thu, 24 Feb 2005 22:40:12 GMT


"Paul Pedersen" <no-reply@swen.com> wrote in message
news:eqWt8KqGFHA.3912@TK2MSFTNGP10.phx.gbl...
> The screen doesn't handle it, nor does notepad. But I don't write multiple
> lines to the screen (or to forms), and I use WordPad to edit text.
>
> It works fine in edit boxes, memo fields, and text controls on reports.
[insert]

PERFECT!!! Thanks so much to both.

Best regards,

- Ben

>
>
>
> "Altman" <NotGiven@SickOfSpam.com> wrote in message
> news:e0Ot17pGFHA.400@TK2MSFTNGP14.phx.gbl...
> > What? You mean if I leave out the Line Feed FoxPro won't type write over
> > the top of my text? :~)
> >
> > Hmm maybe I should get the White Out and fix my answer. :~)
> >
> >
> > "Paul Pedersen" <no-reply@swen.com> wrote in message
> > news:edvKsupGFHA.3452@TK2MSFTNGP10.phx.gbl...
> >> Same here, except that I don't ordinarily use line feeds. Maybe it's my
> >> Macintosh background, but line feeds just seem SO 1970's...
> >>
> >>
> >>
> >> "Altman" <NotGiven@SickOfSpam.com> wrote in message
> >> news:uPyhIopGFHA.2924@TK2MSFTNGP15.phx.gbl...
> >>> CR = CHR(13)
> >>> LF = CHR(10)
> >>> I typically put this in my header file
> >>>
> >>> #DEFINE CRLF CHR(13) + CHR(10)
> >>>
> >>>
> >>>
> >>> "Ben" <no@spam.com> wrote in message
> >>> news:LnoTd.21804$Sq5.14117@twister.rdc-kc.rr.com...
> >>>> Noob question prolly.
> >>>>
> >>>> For writing text files I've found that storing text to a variable
then
> >>>> dumping all at once is much fast than fput() or textmerge. An
example
> >>>> of
> >>>> what I do is:
> >>>>
> >>>> do while !eof()
> >>>> cText=cText+tTbl.TextField
> >>>> enddo
> >>>> StrToFile(cText,'c:\filename.txt')
> >>>>
> >>>> Works great, very fast for what I need. But in some cases I need a
LF
> >>>> and
> >>>> CR and the only way I've found to accomplish this is by using the
VERY
> >>>> slow...
> >>>>
> >>>> set textmerge to ....or...fopen(),fseek(),fput(),fclose()
> >>>>
> >>>> Is there an ASCII character for CR and LF? Honestly tried to look
and
> >>>> can't
> >>>> find it. I'm sure arrays are "better" but I'd like to continue to
use
> >>>> StrToFile() so just wondering if there's a char I can add to my
string
> >>>> to
> >>>> accomplish this.
> >>>>
> >>>> TYIA
> >>>>
> >>>> - Ben
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >
> >
>
>