By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 1,178 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

Literal Directives

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Terry,

In my opinion is this answer from Herfried on a question from yesterday
handling this.

http://groups.google.com/groups?selm...0uni-berlin.de

When you read it, you know probably that it was followed by an answer from
me. (Which Herfried agreed by the way)

:-)

Cor
Nov 21 '05 #2

P: n/a
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

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Terry,

In my opinion is this answer from Herfried on a question from yesterday
handling this.

http://groups.google.com/groups?selm...0uni-berlin.de

When you read it, you know probably that it was followed by an answer from
me. (Which Herfried agreed by the way)

:-)

Cor

Nov 21 '05 #3

P: n/a
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
Nov 21 '05 #4

P: n/a
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

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:ea*************@TK2MSFTNGP11.phx.gbl...
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

Nov 21 '05 #5

P: n/a
* "One Handed Man \( OHM - Terry Burns \)" <news.microsoft.com> scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #6

P: n/a
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

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uT*************@tk2msftngp13.phx.gbl...
* "One Handed Man \( OHM - Terry Burns \)" <news.microsoft.com> scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #7

P: n/a
* "One Handed Man \( OHM - Terry Burns \)" <news.microsoft.com> scripsit:
When talking in this newsgroup VB is implied.


Sure.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.