Results 1 to 8 of 8

Thread: Environment.NewLine

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474

    Environment.NewLine

    Let's use Environment.NewLine instead of vbCrLf!
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Who cares?

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Actually... I sometimes wonder exactly what would be more efficient to use... NewLine is a function that returns two characters... yet you could easily just define a variable as NewLineFeed = {Chr(13), Char(10)}

    Thoughts?

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by nemaroller
    Actually... I sometimes wonder exactly what would be more efficient to use... NewLine is a function that returns two characters... yet you could easily just define a variable as NewLineFeed = {Chr(13), Char(10)}

    Thoughts?
    It's VB, so obviously efficiency isn't it's strong point, so use whatever is easier

  5. #5
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Efficient as compared to what?

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    It's the matter of a portable application. Environment.NewLine returns the new line character in the environment it runs, no matter its windwos, linux, ...
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  7. #7
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    How many other OS's is .Net on right now? I think I heard something about a Unix version coming out...

    and a FreeBSD version is out right now?

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by nemaroller
    How many other OS's is .Net on right now? I think I heard something about a Unix version coming out...

    and a FreeBSD version is out right now?
    Yes , special edition of .NET Framework which supports Unix and Linux . For C# , it's already there . VB.NET should wait a little longer .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width