Literal Directives

  • Thread starter Thread starter One Handed Man \( OHM - Terry Burns \)
  • Start date Start date
O

One Handed Man \( OHM - Terry Burns \)

A long time ago when I was working with LotusScript, we used to be able to
use the | characters to simpify the constrcution of a string which had for
example quotes inside it from the First | to the Last |, the characters were
taken literally.

IE

myString = | "Hello World" |
print MyString

Would generate

"Hello World"

This made things easy and readable, compared to

myString = """Hello World"""

.. . .

I have not been able to find an equivelent in .NET, does anyone know if one
exists ?

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
Yeah, this is not quite what I am looking for, if you re-read my post, I
wanted to find something which simplified the inclusion of quotes from a
readability point of view, unfortunatley that have not implemented the
literal operator @ in vs2005

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
Terry,

I wished thy implemented the JavaScript way

'"My" "World"'
Impossible in VBNet

While
"'My' 'World'"
Possible in VBNet

Maybe there is no view outside the US about this?

Cor
 
ACK as H would say

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
* "One Handed Man \( OHM - Terry Burns \) said:
A long time ago when I was working with LotusScript, we used to be able to
use the | characters to simpify the constrcution of a string which had for
example quotes inside it from the First | to the Last |, the characters were
taken literally.

IE

myString = | "Hello World" |
print MyString

Would generate

"Hello World"

This made things easy and readable, compared to

myString = """Hello World"""

. . .

I have not been able to find an equivelent in .NET, does anyone know if one
exists ?

That's would not be a .NET feature, but it would be a feature of the
programming language. Currently that's not supported by VB.NET.
 
When talking in this newsgroup VB is implied.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing
 
Back
Top