Re: Newbie syntax question
- From: David Anton <DavidAnton@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 18 Sep 2009 07:50:01 -0700
The code is definitely not obsolete. In VB, you need the constants within
the 'Constants' and 'ControlChars' classes to compensate for VB not allowing
the C-style control characters. Just because one specific one has an
equivalent in the .NET Framework doesn't make it obsolete.
What about vbTab? (and all the others in 'Constants' and 'ControlChars',
except for vbCrLf?).
--
David Anton
http://www.tangiblesoftwaresolutions.com
Convert VB to C#, C++, or Java
Convert C# to VB, C++, or Java
Convert C++ to C#, VB, or Java
Convert Java to C#, C++, or VB
"Scott M." wrote:
As others have pointed out, it stands for Visual Basic, meaning that it was.
a built in constant as part of the Visual Basic 6.0 (or ealier) programming
language.
That code in VB .NET, however, is obsolete.
To perform the same task in .NET, you should use:
Environment.Newline
-Scott
"Bob" <kavacon@xxxxxxxx> wrote in message
news:NfCdnXIBj5T6Ki_XnZ2dnUVZ_uOdnZ2d@xxxxxxxxxxxxxx
Hi,
In some code I am studying, there is somthing that clearly inserts a
carriage return and line feed. The code reads "vbCrLf" What is the 'vb'
part?
Thanks!
- Follow-Ups:
- Re: Newbie syntax question
- From: Scott M.
- Re: Newbie syntax question
- References:
- Newbie syntax question
- From: Bob
- Re: Newbie syntax question
- From: Scott M.
- Newbie syntax question
- Prev by Date: Re: Newbie syntax question
- Next by Date: Re: Open a new form and close the previous form.
- Previous by thread: Re: Newbie syntax question (Thank you Mike Williams)
- Next by thread: Re: Newbie syntax question
- Index(es):
Relevant Pages
|