Home > Archive > Clipper > June 2004 > How to create text files with DOS / Windows compatible line endings
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to create text files with DOS / Windows compatible line endings
|
|
|
| Hi,
I am using FlagShip for UNIX which is a clipper clone.
When creating text files with the '?' command, example,
? 'blah blah blah'
I wish to create DOS / Windows compatible files (carriage return and
line feed) instead of UNIX compatible (Line feed only). Is there a
command/method to do so? I've looked at all the SET commands but did
not se anything relevant.
Thanks,
Don
| |
| Peter B. Steiger 2004-06-11, 8:55 pm |
| On Fri, 11 Jun 2004 12:35:04 -0700, Don sez:
> I am using FlagShip for UNIX which is a clipper clone.
>
> When creating text files with the '?' command, example,
>
> ? 'blah blah blah'
>
> I wish to create DOS / Windows compatible files (carriage return and line
> feed) instead of UNIX compatible (Line feed only). Is there a
> command/method to do so? I've looked at all the SET commands but did not
> se anything relevant.
How about manually add the CR?
? "blah blah blah" + chr(13)
If FlagShip handles the #command preprocessor directive, you could even
redefine the "?" command:
#command ? [ <list,...> ] => QQOut( <list> ); QOut( chr( 13 ) )
Of course smart people would shy away from redefining std.ch, but I like
to live on the edge :-)
--
Peter B. Steiger
Cheyenne, WY
If you must reply by email, you can reach me by placing zeroes
where you see stars: wypbs_**3 at bornagain.com.
| |
| Ross McKenzie 2004-06-12, 8:55 am |
| On 11 Jun 2004 12:35:04 -0700, donlcl@yahoo.com (Don) wrote:
>Hi,
>
>I am using FlagShip for UNIX which is a clipper clone.
>
>When creating text files with the '?' command, example,
>
>? 'blah blah blah'
>
>I wish to create DOS / Windows compatible files (carriage return and
>line feed) instead of UNIX compatible (Line feed only). Is there a
>command/method to do so? I've looked at all the SET commands but did
>not se anything relevant.
>
>Thanks,
>Don
Hi Don,
I am not a user of the Flagship product, so...caveat emptor.
How about writing something like...
? 'blah blah blah' + chr(13)
Regards,
Ross McKenzie
ValuSoft
Melbourne Australia
valusoft AT optushome DOT com DOT au
| |
| Ole Kalyana Kjaer 2004-06-13, 3:55 pm |
| Hello Don,
FlagShip has the function:
FS_SET ("prset")
in which you can set FlagShip to use the DOS /Windows convention of carriage
return and line feed.
Best wishes,
Ole Kalyana Kjaer
Fonix Musik
Denmark
Don wrote:
> Hi,
>
> I am using FlagShip for UNIX which is a clipper clone.
>
> When creating text files with the '?' command, example,
>
> ? 'blah blah blah'
>
> I wish to create DOS / Windows compatible files (carriage return and
> line feed) instead of UNIX compatible (Line feed only). Is there a
> command/method to do so? I've looked at all the SET commands but did
> not se anything relevant.
>
> Thanks,
> Don
| |
| Joe Wright 2004-06-13, 3:55 pm |
| Ross McKenzie wrote:
> On 11 Jun 2004 12:35:04 -0700, donlcl@yahoo.com (Don) wrote:
>
>
>
>
> Hi Don,
>
> I am not a user of the Flagship product, so...caveat emptor.
>
> How about writing something like...
>
> ? 'blah blah blah' + chr(13)
>
The print command ? places the newline 'before' the line.
--
Joe Wright mailto:joewwright@comcast.net
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
| |
| Johan Nel 2004-06-13, 3:55 pm |
| Not sure about Flagship and if it also has UDC functionality, if it does,
you can always modify the default '?, ??' functionality to obtain the needed
result and put some #IFDEF into it to enable swapping.
#IFDEF _DOS_NEWLINE_
#command ? [ <list,...> ] => QQOut( Chr(13), Chr(10), <list> )
#ELSE
#command ? [ <list,...> ] => QOut( <list> )
#ENDIF
HTH,
Johan Nel
Pretoria, South Africa.
| |
| Ross McKenzie 2004-06-14, 3:55 am |
| On Sun, 13 Jun 2004 08:46:32 -0400, Joe Wright
<joewwright@comcast.net> wrote:
>Ross McKenzie wrote:
>
>
>The print command ? places the newline 'before' the line.
>--
>Joe Wright mailto:joewwright@comcast.net
>"Everything should be made as simple as possible, but not simpler."
> --- Albert Einstein ---
Quite so Joe. Thanks for the reminder.
Regards,
Ross McKenzie
ValuSoft
Melbourne Australia
valusoft AT optushome DOT com DOT au
| |
|
| Hi,
I am using FlagShip 4.48 for SCO Open Server.
There is no FS_SET ("prset") function, specifically, no "prset"
parameter for that function.
Ole Kalyana Kjaer <ole@fonixmusik.com> wrote in message news:<40cb0a18$0$237$edfadb0f@dread11.news.tele.dk>...[color=darkred]
> Hello Don,
>
> FlagShip has the function:
> FS_SET ("prset")
> in which you can set FlagShip to use the DOS /Windows convention of carriage
> return and line feed.
>
> Best wishes,
> Ole Kalyana Kjaer
> Fonix Musik
> Denmark
>
>
> Don wrote:
>
| |
|
| "Peter B. Steiger" <see.sig@for.email.address> wrote in message news:<pan.2004.06.11.21.22.45.984360@bresnan.net>...
> On Fri, 11 Jun 2004 12:35:04 -0700, Don sez:
>
> How about manually add the CR?
>
> ? "blah blah blah" + chr(13)
>
> If FlagShip handles the #command preprocessor directive, you could even
> redefine the "?" command:
>
> #command ? [ <list,...> ] => QQOut( <list> ); QOut( chr( 13 ) )
>
> Of course smart people would shy away from redefining std.ch, but I like
> to live on the edge :-)
Thanks, now why didn't I think of that!
I already edited std.fh once so I wil try your idea.
|
|
|
|
|