473,407 Members | 2,314 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,407 software developers and data experts.

Question on ""

thrdReply.SMSMessage = "The keyword " + Keyword + "does not exists. Please
try again."

I want to add "" around the String Keyword and am not exaclty sure what to
do.

Thanks,
Mike
--
THIS TRANSMISSION CONTAINS PROPRIETARY AND CONFIDENTIAL INFORMATION.This
information is intended to be for the exclusive use of the individual or
entity named above. If you are not the intended recipient, be advised that
any disclosure, copying, distribution or other use of this information is
strictly prohibited. If you have received this transmission in error,
please notify us by telephone at +16717881000 or by email to mr*@hafatel.com
immediately.
Nov 21 '05 #1
5 914
"Michael R. Pierotti" <mr*@hafatel.com> schrieb:
thrdReply.SMSMessage = "The keyword " + Keyword + "does not exists. Please
try again."

I want to add "" around the String Keyword and am not exaclty sure what to
do.


Encode each double quote by two consecutive double quotation mark
characters:

\\\
.... = "The keywords """ & Keyword & """ does not exist. Please try again."
///

I suggest to use the '&' operator for concatenating strings instead of using
'+'.

--
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 #2
Nope that does not work

thrdReply.SMSMessage = "The keyword "" & Keyword.toUpper & "" does not
exist. Please try again."
Gives me

The Keyword & Keyword.toUpper & does not exist. Please try again.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
"Michael R. Pierotti" <mr*@hafatel.com> schrieb:
thrdReply.SMSMessage = "The keyword " + Keyword + "does not exists. Please try again."

I want to add "" around the String Keyword and am not exaclty sure what to do.
Encode each double quote by two consecutive double quotation mark
characters:

\\\
... = "The keywords """ & Keyword & """ does not exist. Please try

again." ///

I suggest to use the '&' operator for concatenating strings instead of using '+'.

--
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 #3
Michael,

"Michael R. Pierotti" <mr*@NOSPAMhafatel.com> schrieb:
thrdReply.SMSMessage = "The keyword "" & Keyword.toUpper & "" does not
exist. Please try again."
Gives me

The Keyword & Keyword.toUpper & does not exist. Please try again.


I can only repeat what I said:

\\\
.... = "The keywords """ & Keyword & """ does not exist. Please try again."
///

Notice that there are actually three (!) consecutive double quotation
characters. The last one is used to terminate the first string literal
before the '&' operator.

--
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 #4
Gotcha. Font on my screen is so small I missed the extra " in there :s
Thanks,
Mike

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:uf****************@TK2MSFTNGP11.phx.gbl...
Michael,

"Michael R. Pierotti" <mr*@NOSPAMhafatel.com> schrieb:
thrdReply.SMSMessage = "The keyword "" & Keyword.toUpper & "" does not
exist. Please try again."
Gives me

The Keyword & Keyword.toUpper & does not exist. Please try again.
I can only repeat what I said:

\\\
... = "The keywords """ & Keyword & """ does not exist. Please try

again." ///

Notice that there are actually three (!) consecutive double quotation
characters. The last one is used to terminate the first string literal
before the '&' operator.

--
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 #5
\\\
.... = """The keywords " & Keyword & """ does not exist. Please try again."
///

I hope this helps?

Cor
Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Pro Grammer | last post by:
Hello, all, I am not sure if this is the right place to ask, but could you kindly tell me how to "load" a shared object (like libx.so) into python, so that the methods in the .so can be used? That...
3
by: Gerlow | last post by:
Hi When I am using a ASP SQL question to my Access 2000 db via IIS 5.0 and have the SELECT TOP 15 syntax in the SQL question I get 15 rows in my answer if a have many rows in the table, but if I...
1
by: Steve Jorgensen | last post by:
I know some of you here were following involved with, or annoyed with the volume of traffic in the recent thread I started called "Open Question...". I'm posting this message because, though I...
3
by: Michael | last post by:
Hello experts! I hope to tap your vast knowledge of unbound wisdom. Please help this humble squire in his search for knowledge. Product: MS Access 2003 I have a report that basically lists...
3
by: Neils Christoffersen | last post by:
Hey all, I wrote on Friday asking for some help moving a common subclass field up to the base class (original post and followup included below). This entails storing whole numbers inside float...
1
by: AmiciDan | last post by:
When I attempt to create a new project in Visual Studio .NET 2003, I do NOT have the option to create the following: Microsoft Office 2003 Projects What do I need to install or do to get this...
6
by: Adam Smith | last post by:
I have posted this and similar questions repeatedly and can't even raise a single response. I am being led to believe that this then 'Must be a stupid question' although people say that there is no...
42
by: Holger | last post by:
Hi guys Tried searching for a solution to this, but the error message is so generic, that I could not get any meaningfull results. Anyways - errormessage:...
4
by: R.A.M. | last post by:
Hello, (Sorry for my English...) I am learning C# and I have a question: is it good practice to use "using", for example: using (SqlConnection connection = new SqlConnection(ConnectionString))...
2
by: mirandacascade | last post by:
I am prompted to make these inquiries after seeing the following link to ctypes: http://docs.python.org/lib/module-ctypes.html in which ctypes is described as a foreign function library. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.