Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 11:36 AM
Jeff Uchtman
Guest
 
Posts: n/a
Default Question for Ray @ where ever he may be.

Ray,
I followed your advice on an eariler question on CBool by using this to
check 3 true/false boxes:
<%
Dim A, B, C 'As Integer
Dim Check 'As Boolean
A = rs("PetA")
B = rs("PetB")
C = rs("PetC")
Check = CBool(A = B = C) ' Check is set to True.
%>

This works but really slows down access to the ms-sql db. Any advice Ray,
anyone?

Thanks
Jeff


  #2  
Old July 19th, 2005, 11:36 AM
Evertjan.
Guest
 
Posts: n/a
Default Re: Question for Ray @ where ever he may be.

Jeff Uchtman wrote on 02 feb 2004 in
microsoft.public.inetserver.asp.general:
[color=blue]
> Check = CBool(A = B = C)[/color]

This cannot be usefull in vbs!

A = B = C

means

"give A the boolean value of the result of B = C"

but A = B = C is a statement, not a function,
so it should have no output in my view,
but vbs gives it a "false" output,
since M$ in their wisdom doen't want
any distinction between statement and function

===============

Check = CBool(A = B = C)
document.write Check

is like

Check = CBool(false)
document.write Check

or

document.write a=3

They all ALWAYS give FALSE !

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles