Home > Archive > VBScript > November 2004 > Error indicating lines of code which don't exist
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Error indicating lines of code which don't exist
|
|
|
| I'm getting this error:
Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'CBool'
/regweb/newcoursesubmit_interface/Results/editor/edit.asp, line 385
The number of lines only goes to 335. What does this mean?
I did go to aspfaq.com but the suggestions there don't seem to have any
bearing upon this weird problem.
I've been reading and writing content to a database via ASP successfully.
Double checked the column names in the database and the ASP coding. There's
no mismatch relating to "'CBool'".
| |
| McKirahan 2004-11-18, 8:56 pm |
| "H8ids" <dgrisset@sewanee.edu> wrote in message
news:#7Aq7dbzEHA.1932@TK2MSFTNGP09.phx.gbl...
> I'm getting this error:
>
> Error Type:
> Microsoft VBScript runtime (0x800A000D)
> Type mismatch: 'CBool'
> /regweb/newcoursesubmit_interface/Results/editor/edit.asp, line 385
>
> The number of lines only goes to 335. What does this mean?
>
> I did go to aspfaq.com but the suggestions there don't seem to have any
> bearing upon this weird problem.
> I've been reading and writing content to a database via ASP successfully.
> Double checked the column names in the database and the ASP coding.
There's
> no mismatch relating to "'CBool'".
Are there any "includes" in the "page"?
Try using Response.Write at various points to debug.
| |
| Richard Mueller [MVP] 2004-11-19, 3:56 pm |
|
"McKirahan" <News@McKirahan.com> wrote in message
news:0L9nd.630979$8_6.120679@attbi_s04...
> "H8ids" <dgrisset@sewanee.edu> wrote in message
> news:#7Aq7dbzEHA.1932@TK2MSFTNGP09.phx.gbl...
successfully.[color=darkred]
> There's
>
>
> Are there any "includes" in the "page"?
>
> Try using Response.Write at various points to debug.
>
Also, the line count includes any blank lines, not just lines with code.
And, your message indicates a problem with the CBool function. This function
requires a numeric value. You may be able to find where this is used. You
may have passed a string value to the function.
--
Richard
Microsoft MVP Scripting and ADSI
HilltopLab web site - http://www.rlmueller.net
--
| |
|
| Yes, there are several files called upon. The files were generated by a
FrontPage wizard.
When I receive the error, it defines the webpage that would be calling the
"include" file; does IIS recognize "included" files as a part of the calling
file?
"McKirahan" <News@McKirahan.com> wrote in message
news:0L9nd.630979$8_6.120679@attbi_s04...
> "H8ids" <dgrisset@sewanee.edu> wrote in message
> news:#7Aq7dbzEHA.1932@TK2MSFTNGP09.phx.gbl...
> There's
>
>
> Are there any "includes" in the "page"?
>
> Try using Response.Write at various points to debug.
>
>
| |
|
| Michael,
You mentioned "And, your message indicates a problem with the CBool
function. This function requires a numeric value."
I did alter my Access database trying to present data correctly over the
internet. Would this cause a CBool malfunction.
Dave
"Richard Mueller [MVP]" <rlmueller-NOSPAM@ameritech.NOSPAM.net> wrote in
message news:%23raCfnmzEHA.2676@TK2MSFTNGP12.phx.gbl...
>
> "McKirahan" <News@McKirahan.com> wrote in message
> news:0L9nd.630979$8_6.120679@attbi_s04...
> successfully.
>
> Also, the line count includes any blank lines, not just lines with code.
> And, your message indicates a problem with the CBool function. This
> function
> requires a numeric value. You may be able to find where this is used. You
> may have passed a string value to the function.
>
> --
> Richard
> Microsoft MVP Scripting and ADSI
> HilltopLab web site - http://www.rlmueller.net
> --
>
>
| |
| Richard Mueller [MVP] 2004-11-22, 8:56 pm |
| Hi,
Yes, this might be the cause of your problem. Some platforms store True and
False for booleans, others store 1 and 0, and some store -1 and 0. Boolean
True in VBScript, for example is -1, but in SQL it is 1, and in VB and
VBScript you test by comparing to True (not "True", which is a string). The
CBool function converts 0 to boolean False and any other numeric to True. If
the value passed to CBool is True or "True", an error is raised. In VB when
I access data in an SQL database I frequently need to convert True to 1 and
False to 0 (or the reverse).
--
Richard
Microsoft MVP Scripting and ADSI
HilltopLab web site - http://www.rlmueller.net
--
"H8ids" <dgrisset@sewanee.edu> wrote in message
news:ehty9MN0EHA.1652@TK2MSFTNGP11.phx.gbl...
> Michael,
>
> You mentioned "And, your message indicates a problem with the CBool
> function. This function requires a numeric value."
> I did alter my Access database trying to present data correctly over
the
> internet. Would this cause a CBool malfunction.
>
> Dave
>
>
> "Richard Mueller [MVP]" <rlmueller-NOSPAM@ameritech.NOSPAM.net> wrote in
> message news:%23raCfnmzEHA.2676@TK2MSFTNGP12.phx.gbl...
any[color=darkred]
You[color=darkred]
>
>
| |
|
| Thanks Richard,
This makes sense regarding the error I ran into; recreating project.
Glad the project had not been developed to far. :)
David
"Richard Mueller [MVP]" <rlmueller-NOSPAM@ameritech.NOSPAM.net> wrote in
message news:uNJ8vhN0EHA.3840@tk2msftngp13.phx.gbl...
> Hi,
>
> Yes, this might be the cause of your problem. Some platforms store True
> and
> False for booleans, others store 1 and 0, and some store -1 and 0. Boolean
> True in VBScript, for example is -1, but in SQL it is 1, and in VB and
> VBScript you test by comparing to True (not "True", which is a string).
> The
> CBool function converts 0 to boolean False and any other numeric to True.
> If
> the value passed to CBool is True or "True", an error is raised. In VB
> when
> I access data in an SQL database I frequently need to convert True to 1
> and
> False to 0 (or the reverse).
>
> --
> Richard
> Microsoft MVP Scripting and ADSI
> HilltopLab web site - http://www.rlmueller.net
> --
> "H8ids" <dgrisset@sewanee.edu> wrote in message
> news:ehty9MN0EHA.1652@TK2MSFTNGP11.phx.gbl...
> the
> any
> You
>
>
|
|
|
|
|