473,385 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Literal Directives

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
7 1084
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
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
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
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
* "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
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
* "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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Don Starr | last post by:
When applied to a string literal, is the sizeof operator supposed to return the size of the string (including nul), or the size of a pointer? For example, assuming a char is 1 byte and a char *...
24
by: Nalla | last post by:
Hi, I want a program. It should be a command line one. you can input the path of a folder(preferably) or a file...it should count the no. of lines between the compiler directives, ifdef win32 and...
13
by: seemanta dutta | last post by:
Greetings C gurus, I have used preprocessor directives since a very long time. But whenever I see some professional piece of C code, the linux kernel for example, I get literally confused by the...
5
by: cody | last post by:
the following leads to an error (note that TEST is not defined): #if TEST string s = @" #"; // <-- the error is "preprocessing directive expected" #endif also, here we get the same error: ...
13
by: rincewind | last post by:
I remember reading an article (was it Herb Sutter's?) that recommended avoiding using directives. While I quite understand this recommendation for headers, what's wrong in using directive in .cpp...
1
by: bcr07548 | last post by:
I am writing a C++ wrapper class for a library that was available in C but am having some trouble because, at some point, one function was replaced by a similar one. I would like to have it so my...
21
by: Bogdan | last post by:
Can anyone recommend a program for indentation of C preprocessor directives. My file looks like this: #ifdef a #define b #else #define c #endif int main() {
76
by: jacob navia | last post by:
Since standard C doesn't provide any way for the programmer to direct the compiler as to how to layout structures, most compilers provide some way to do this, albeit in different forms. ...
14
by: lagman | last post by:
All, I'm looking for a tool that is able to take my code base (which is full of preprocessor directives) and spit out source code that is "clean" of any preprocessor directives based on the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.