Re: Newbie syntax question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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!





.



Relevant Pages

  • Re: jdk 1.5 and windows 7
    ... The CurrCon applet is written to Java 1.1. ... The less technical my audience, ... Seems to me that the least technical would actually appreciate modern versions, not obsolete ones. ... Just because you're not using *language features* from later versions is no good reason to use old versions that lack a whole bunch of improvements in all areas. ...
    (comp.lang.java.programmer)
  • Re: Background Image in Java 1.1.8 and awt
    ... Java 1.1.8 is obsolete. ... you can justify coding in 1.1 is to cater to ...
    (comp.lang.java.gui)
  • Re: jdk1.1.8 0n Vista 64 bit
    ... Running on an old, unsupported platform carries ... obsolete, unsupported and out of date for a long time now. ... Java versions. ... inappropriate for computer programming, as it is in other professions ...
    (comp.lang.java.help)
  • Re: Can I have comment lines in Java property file?
    ... At my previous workplace, an year ago I was still maintaining a Java 1.3 application. ... At least by not being a stick-in-the-mud about old docs, and giving the *current* relevant information, one gives the querent the knowledge that "the stuff is available at least starting with that obsolete version" without depriving them of the knowledge that, should they actually not be using an obsolete Java version themselves, they have a superior method available. ... there was a significant change with the addition of a much more useful method. ...
    (comp.lang.java.programmer)