Let's use Environment.NewLine instead of vbCrLf!
Printable View
Let's use Environment.NewLine instead of vbCrLf!
Who cares?
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 :DQuote:
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?
Efficient as compared to what?
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, ...
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 .Quote:
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?