Re: Embedding a newline in a vb.net string constant




Andrew Backer wrote:
<snip>
In c++/c/c#/php/just about everything you can embed control chars in a
string using a \.

Examples of this include, but are not limited to, \n \r \t.
An example : "This is the first line \n and this is the second \n\t and
this is tabbed in"

*** My question was, and still is, this :
Can I do this in VB.Net somehow. That is all.
<snip>

No, unfortunatelly it's not possible.

Just as it isn't possible to have multi-line strings, multi-line
comments and multiple results from a function...

=P

B.

.



Relevant Pages

  • Re: The Philosophy of Programming?
    ... less trivial to ensure that the string length has not been altered. ... > lowers psychological complexity for most intelligent readers. ... For most intelligent programmers, the laziness principal applies. ...
    (comp.programming)
  • Re: A C++ Whishlist
    ... > people from inclusion in a standard. ... > creating their own string class. ... >>don't want an ever increasing size of exception specification on each ...
    (comp.lang.cpp)
  • Re: Hash functions (was: Maximum String size in Java?)
    ... snip ... ... Inserted with sx31hsh and ssfh_ph in 0.385 secs ... your string library has problems with them speaks for itself. ... published your SFH code with the shifted and undersized ints. ...
    (comp.programming)
  • Performance with reading large numbers of files...
    ... I have a small test application that recurses a directory and adds all the file names to a string collection. ... RecurseDirs, sDiskFiles); ... private static void RecurseDirs ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Dynamic inheritance
    ... the name but a devicetypeB may require a menu string 4,7 to be passed to ... I wanted to wrap the menu string in a GetName method but have the ... implementation of that method to be appropriate for the node type. ...
    (comp.object)