Re: Passing a doble-quote character to response.write
"Evertjan." wrote:[color=blue]
>[color=green]
>> 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.[/color]
>
> 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.[/color]
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.
[color=blue]
> 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.[/color]
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.
[color=blue]
> 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$.[/color]
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.
Passing a doble-quote character to response.write
Collapse
This topic is closed.
X
X
-
Guest replied -
Guest repliedRe: Passing a doble-quote character to response.write
Dave Anderson wrote on 10 jul 2003 in
microsoft.publi c.inetserver.as p.general:[color=blue]
> "Evertjan." wrote:[color=green]
>>[color=darkred]
>>> Call Response.Write( 7.13)[/color]
>>
>> This is no question of accepting this, this is pure nonsense.
>>
>> The Call statement is to use a function as a statement,[/color]
>
> 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.[/color]
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)
Leave a comment:
-
Guest repliedRe: Passing a doble-quote character to response.write
"Evertjan." wrote:[color=blue]
>
> 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.[/color]
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.
Leave a comment:
-
Guest repliedRe: Passing a doble-quote character to response.write
A Ratcliffe wrote:[color=blue]
> 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)[/color]
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
Leave a comment:
-
Guest repliedRe: Passing a doble-quote character to response.write
A Ratcliffe wrote on 09 jul 2003 in
microsoft.publi c.inetserver.as p.general:[color=blue]
> since they had to use the parentheses in
> Conn.Execute(st rSQL)[/color]
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)
Leave a comment:
-
Guest repliedRe: Passing a doble-quote character to response.write
A Ratcliffe wrote on 09 jul 2003 in
microsoft.publi c.inetserver.as p.general:
[color=blue]
> 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.[/color]
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)
Leave a comment:
-
Guest repliedRe: Passing a doble-quote character to response.write
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." <exjxw.hannivoo rt@interxnl.net > wrote in message
news:Xns93B2E4B E3B412eejj99@19 4.109.133.29...[color=blue]
> Ricardo wrote on 08 jul 2003 in microsoft.publi c.inetserver.as p.general:
>[color=green]
> > How should I pass a " (doble-quote) character to
> > response.write( ) in order for it to be sent to the output ?[/color]
>
> 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)[/color]
Leave a comment:
-
Guest repliedRe: Passing a doble-quote character to response.write
Ricardo wrote on 08 jul 2003 in microsoft.publi c.inetserver.as p.general:
[color=blue]
> How should I pass a " (doble-quote) character to
> response.write( ) in order for it to be sent to the output ?[/color]
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)
Leave a comment:
-
Guest repliedRe: Passing a doble-quote character to response.write
Ricardo wrote:[color=blue]
> 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.[/color]
Double it (also known as "escaping" it):
response.write "here is a double=quote: ""<BR>"
HTH,
Bob Barrows
Leave a comment:
-
Passing a doble-quote character to response.write
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.
Tags: None
Leave a comment: