Re: Newline in Text Property
From: Tom Shelton (tom_at_mtogden.com)
Date: 04/20/04
- Next message: mros: "The variable 'controlname' is either undeclared or was never assigned."
- Previous message: Helen: "Re: Dim oRpt As New CrystalReport1() failing"
- In reply to: Armin Zingler: "Re: Newline in Text Property"
- Next in thread: Armin Zingler: "Re: Newline in Text Property"
- Reply: Armin Zingler: "Re: Newline in Text Property"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 20 Apr 2004 10:44:02 -0700
In article <408551a9$0$26139$9b622d9e@news.freenet.de>, Armin Zingler wrote:
> "Tom Shelton" <tom@mtogden.com> schrieb
>>
>> New lines are platform specific.
>
> There is no platform specific standard.
I'm not sure what you mean be standard? If your talking about a formal
standards body - then no, there isn't. But traditionally on *nix a
newline is a single lf (I know I said CR earlier). It's one of those
issues that tends to bite people when writing cross platform code. *nix
progams will almost always assume that a line terminates on LF, windows/dos
expects a cr/lf.
I'm really not sure what the argument is about. The fact is that it
unless you have specific reasons, I find that it is better not to
hardcode your line termination to a specific value - ControlChars.CrLf -
but to use System.Environment.NewLine. That way, I don't have to worry
about the difference because it will just do the right thing based on
the underlying platform. Look in the VB6 docs for vbNewLine - it is
essentially the same thing.
-- Tom Shelton [MVP]
- Next message: mros: "The variable 'controlname' is either undeclared or was never assigned."
- Previous message: Helen: "Re: Dim oRpt As New CrystalReport1() failing"
- In reply to: Armin Zingler: "Re: Newline in Text Property"
- Next in thread: Armin Zingler: "Re: Newline in Text Property"
- Reply: Armin Zingler: "Re: Newline in Text Property"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|