Being required to do everything the ".NET" way ... I was told that vbcr is soon going to be deprecated and is to be replaced by something else in the future ... anyhow even if vbcr does the job done for some reason they want the change now... they said we cannot use vbcr, vbcrlf,
vbnewline ... and then when asked what then do we use? They say just go search ...
I searched and all I can see is that the whole world seems to be still using vbcr ... they said MSDN
has it but I end up going around in circles
Any ideas?
For instance, 'Constants.vbTab' has no other sensible equivalent, unless you want a character - in that case it's 'ControlChars.Tab'.
As dglienna said, you might want to use Environment.Newline, but in general the VB equivalents to the standard C-style control characters are the ones in the Constants class or the ControlChars class, both in the Microsoft.VisualBasic assembly.
David Anton
Convert between VB, C#, C++, & Java www.tangiblesoftwaresolutions.com
Instant C# - VB to C# Converter
Instant VB - C# to VB Converter
vbCrLf is the same as Chr$(13) & Chr$(10) (which does the same thing)
That's why they came up with the Constants and ControlChars classes - this is a step forward from remembering the numbers (which you had to do in VB3 I believe).
David Anton
Convert between VB, C#, C++, & Java www.tangiblesoftwaresolutions.com
Instant C# - VB to C# Converter
Instant VB - C# to VB Converter
Bookmarks