Hi.
How should I pass a " (doble-quote) character to
response.write( ) in order for it to be sent to the output ?
Thanks in advance for the help. 9 30333
Ricardo wrote: Hi.
How should I pass a " (doble-quote) character to response.write( ) in order for it to be sent to the output ?
Thanks in advance for the help.
Double it (also known as "escaping" it):
response.write "here is a double=quote: ""<BR>"
HTH,
Bob Barrows
Ricardo wrote on 08 jul 2003 in microsoft.publi c.inetserver.as p.general: How should I pass a " (doble-quote) character to response.write( ) in order for it to be sent to the output ?
If we are speakig about vbscript response.write argument is without ().
<%
response.write "This: "" is a single double quote.<br>"
response.write "This: """" is a double double quote.<br><br>"
response.write "This: " is a single double quote.<br>"
response.write "This: "" is a double double quote."
%>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Actually, VBscript doesn't seem to mind either way:
Response.Write( "This is a response")
Response.Write "This is a response"
Both of those are accepted in VBScript without error.
A Ratcliffe
"Evertjan." <ex************ **@interxnl.net > wrote in message
news:Xn******** ************@19 4.109.133.29... Ricardo wrote on 08 jul 2003 in microsoft.publi c.inetserver.as p.general:
How should I pass a " (doble-quote) character to response.write( ) in order for it to be sent to the output ?
If we are speakig about vbscript response.write argument is without ().
<% response.write "This: "" is a single double quote.<br>" response.write "This: """" is a double double quote.<br><br>"
response.write "This: " is a single double quote.<br>" response.write "This: "" is a double double quote." %>
-- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
A Ratcliffe wrote on 09 jul 2003 in
microsoft.publi c.inetserver.as p.general: Actually, VBscript doesn't seem to mind either way:
Response.Write( "This is a response") Response.Write "This is a response"
Both of those are accepted in VBScript without error.
That is not the [my] point. The () however are parsed away by the
expression parser before it reaches the response.write, at the cost of some
extra processing time.
Like:
Response.Write 7.13*1*1*1
results in the same as
Response.Write 7.13
Still the first is not ordinary scripting, as it just ads something
superfluous (*1*1*1) and shows a lack of knowledge of vbscript syntax.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
A Ratcliffe wrote on 09 jul 2003 in
microsoft.publi c.inetserver.as p.general: since they had to use the parentheses in Conn.Execute(st rSQL)
Is this true ?
I do not use that, but in vb, I shouldn't think so, if we are talking
statements, or functions used as statements, and not functions?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
A Ratcliffe wrote: Personally I agree with your point, but having had to work on another coder's scripts which did use the parentheses, I thought it worth mentioning.
Their reasoning was that since they had to use the parentheses in Conn.Execute(st rSQL)
They did not HAVE to use parentheses, unless they were getting a recordset
back from the method:
Set rs=Conn.Execute (strSQL)
The only reason they were able to get away with using parentheses without
getting anything back:
Conn.Execute(st rSQL)
was because they were only passing a single argument to the Execute method.
Try using parentheses in this more appropriate call (you really should be
telling ADO what the CommandType is instead of making it guess ...) to
Execute and see what happens:
Conn.Execute(st rSQL..adCmdText )
The rule that has served me very well in the last 10 yrs is:
Only use parentheses when passing arguments to a function whose return value
is being "used".
Of course, I had to unlearn this rule when I started doing jscript, and I
understand that the rule is no longer valid in vb.net.
HTH,
Bob Barrows
"Evertjan." wrote: Response.Write 7.13*1*1*1
results in the same as
Response.Write 7.13
Still the first is not ordinary scripting, as it just ads something superfluous (*1*1*1) and shows a lack of knowledge of vbscript syntax.
While I agree that multiple identity multiplications are superfluous, I
don't see how using them demonstrates lack of knowledge of VBScript syntax.
Would you suggest a different multiplication operator?
I suppose you were trying to say that Response.Write( 7.13) demonstrates such
a lack. In that case, would you accept the use of
Call Response.Write( 7.13)
as demonstrating knowledge of VBScript syntax? Or does your definition of
"syntax" only mean "what I'm used to seeing"?
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Dave Anderson wrote on 10 jul 2003 in
microsoft.publi c.inetserver.as p.general: "Evertjan." wrote: Call Response.Write( 7.13)
This is no question of accepting this, this is pure nonsense.
The Call statement is to use a function as a statement,
Incorrect. The Microsoft documentation describes as [Call] an "optional keyword" of the Call Statement, which is implicit in every Sub/Function call. In other words, it is syntactically valid.
I will forgo on your furter remarks by explaining that M$ did not invent
Basic, that it's documentation is not the Bible, nor is M$ God.
If I critisize M$ for some idea's, your telling me that M$'s changing of
the basic Basic principles in VB makes my critique incorrect, is ludicrous.
Bill Gates' own ideas, as seen in "Central Data Basic" for the Signetic's
2650 microprocessor, from around 1982, expanding the original Basic concept
into the direction of the modern VB concept, were far more sound than the
lozening of the syntax adopted nowadays by M$.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
"Evertjan." wrote: The Microsoft documentation describes as [Call] an "optional keyword" of the Call Statement, which is implicit in every Sub/Function call. In other words, it is syntactically valid. I will forgo on your furter remarks by explaining that M$ did not invent Basic, that it's documentation is not the Bible, nor is M$ God.
We're not talking about Basic, we're talking about VBScript. And VBScript is
whatever Microsoft says it is, which makes the MS documentation 100%
relevant.
If I critisize M$ for some idea's, your telling me that M$'s changing of the basic Basic principles in VB makes my critique incorrect, is ludicrous.
What is ludicrous is the assertion that VBScript is Basic -- or even an
implementation of Basic. It's a separate scripting language intended to be
familiar to Basic programmers, and nothing more.
Bill Gates' own ideas, as seen in "Central Data Basic" for the Signetic's 2650 microprocessor, from around 1982, expanding the original Basic concept into the direction of the modern VB concept, were far more sound than the lozening of the syntax adopted nowadays by M$.
Start with a false pretense and you can conclude anything you desire.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andy Read |
last post by:
Dear all,
I thought I understood passing parameters ByVal and ByRef but I
clearly don't! If I define a simple class
of:
Public Class Person
Public Name as String
Public Age as Integer
End Class
|
by: Alex Vinokur |
last post by:
Various forms of argument passing
=================================
C/C++ Performance Tests
=======================
Using C/C++ Program Perfometer
http://sourceforge.net/projects/cpp-perfometer
http://alexvn.freeservers.com/s1/perfometer.html
|
by: Dave |
last post by:
I'm currently working on a small project (admitedly for my CS class)
that compares the time difference between passing by value and passing
by reference. I'm passing an array of 50000 int's. However, since in
C++ an array is passed by reference by default I need to embed the
array into a struct in order to pass it by value. The problem is that
I get a segmentation error when doing so. I'm using the Dev-c++
compiler. Any ideas?
...
|
by: jr |
last post by:
Sorry for this very dumb question, but I've clearly got a long way to go!
Can someone please help me pass an array into a function. Here's a starting
point.
void TheMainFunc()
{
// Body of code...
TCHAR myArray;
DoStuff(myArray);
|
by: dave.harper |
last post by:
I'm relatively new to C++, but have a question regarding functions and
arrays. I'm passing a relatively large array to a function several
thousand times during the course of a loop, and it seems to get bogged
down. Do the arrays previously passed to the function stay memory
resident? If not, what's causing it and what can I do to correct it?
Thanks,
Dave
| |
by: Just Me |
last post by:
PARAFORMAT2 is a structure that SendMessage will return stuff in.
Is the "ref" correct or since only a pointer is being passed should it be by
value?
Suppose I was passing data rather then receiving it,
would that change the answer to the above?
|
by: Dennis Myrén |
last post by:
I have these tiny classes, implementing an interface through which their
method
Render ( CosWriter writer ) ;
is called.
Given a specific context, there are potentially a lot of such objects, each
requiring a call to that method to fulfill their purpose.
There could be 200, there could be more than 1000.
That is a lot of references passed around. It feels heavy.
Let us say i changed the signature of the interface method to:
|
by: MSDNAndi |
last post by:
Hi,
I get the following warning:
"Possibly incorrect assignment to local 'oLockObject' which is the argument
to a using or lock statement. The Dispose call or unlocking will happen on
the original value of the local."
My code is:
using System;
using System.Collections.Generic;
|
by: academic |
last post by:
When I declare a reference variable I initialize it to Nothing.
Now I'm wondering if that best for String variables - is "" better?
With Nothing I assume no memory is set aside nor GC'ed
But with "" it is - correct?
The system seems to handle a null the same as "".
|
by: Andrew Bullock |
last post by:
Hi,
I have two classes, A and B,
B takes an A as an argument in its constructor:
A a1 = new A();
B b = new B(a1);
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |