472,951 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,951 software developers and data experts.

Microsoft VBScript runtime (0x800A000D) Type mismatch: '[string: "

Hello:

I have Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: '[string: "2, 0"]'

The error happened at this line: if session("systemIdCount" &
arrSystems(iLoop)) 0

The code like this:

strSystems = session("strSystems") '' Capture SystemId Array
arrSystems = split(strSystems, ",")

iLoop = 0
For iLoop = LBound(arrSystems) to UBound(arrSystems) '' Start SystemId Array
Loop
arrSystems(iLoop) = Trim(arrSystems(iLoop))
computerCount = computerCount + 1
session("systemId" & arrSystems(iLoop)) = arrSystems(iLoop) '' Define
SystemId Session

if request.querystring("newOrder") = "true" then '' Resets Session if it is
a New Order
session("systemIdCount" & arrSystems(iLoop)) = request("systemIdCount" &
arrSystems(iLoop)) '' Define SystemId Count Session
end if

if session("systemIdCount" & arrSystems(iLoop)) 0 then '' Check if count
is grater than 0
varSysId = session("systemId" & arrSystems(iLoop))
for varItemNum = 1 to session("systemIdCount" & arrSystems(iLoop)) '
varItemNum Loop
..........

I thought that the error was that session should be int, so add cint to the
this line: if (session("systemIdCount" & arrSystems(iLoop))) 0 However, I
got mismatch "cint" error.

What am I missing here?

Your help is highly appreciated.

Oct 26 '06 #1
3 30779

Snow wrote:
Hello:

I have Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: '[string: "2, 0"]'

The error happened at this line: if session("systemIdCount" &
arrSystems(iLoop)) 0

The code like this:

strSystems = session("strSystems") '' Capture SystemId Array
arrSystems = split(strSystems, ",")

iLoop = 0
For iLoop = LBound(arrSystems) to UBound(arrSystems) '' Start SystemId Array
Loop
arrSystems(iLoop) = Trim(arrSystems(iLoop))
computerCount = computerCount + 1
session("systemId" & arrSystems(iLoop)) = arrSystems(iLoop) '' Define
SystemId Session

if request.querystring("newOrder") = "true" then '' Resets Session if it is
a New Order
session("systemIdCount" & arrSystems(iLoop)) = request("systemIdCount" &
arrSystems(iLoop)) '' Define SystemId Count Session
end if

if session("systemIdCount" & arrSystems(iLoop)) 0 then '' Check if count
is grater than 0
varSysId = session("systemId" & arrSystems(iLoop))
for varItemNum = 1 to session("systemIdCount" & arrSystems(iLoop)) '
varItemNum Loop
.........

I thought that the error was that session should be int, so add cint to the
this line: if (session("systemIdCount" & arrSystems(iLoop))) 0 However, I
got mismatch "cint" error.

What am I missing here?
Put a response.write in giving you the session variable that you're
trying to build

response.write(systemIdCount" & arrSystems(iLoop))

This will tell you the reason for the error.

Oct 26 '06 #2
Thanks for help. I put response.write, but there was nothing shown on the page

"Larry Bud" wrote:
>
Snow wrote:
Hello:

I have Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: '[string: "2, 0"]'

The error happened at this line: if session("systemIdCount" &
arrSystems(iLoop)) 0

The code like this:

strSystems = session("strSystems") '' Capture SystemId Array
arrSystems = split(strSystems, ",")

iLoop = 0
For iLoop = LBound(arrSystems) to UBound(arrSystems) '' Start SystemId Array
Loop
arrSystems(iLoop) = Trim(arrSystems(iLoop))
computerCount = computerCount + 1
session("systemId" & arrSystems(iLoop)) = arrSystems(iLoop) '' Define
SystemId Session

if request.querystring("newOrder") = "true" then '' Resets Session if it is
a New Order
session("systemIdCount" & arrSystems(iLoop)) = request("systemIdCount" &
arrSystems(iLoop)) '' Define SystemId Count Session
end if

if session("systemIdCount" & arrSystems(iLoop)) 0 then '' Check if count
is grater than 0
varSysId = session("systemId" & arrSystems(iLoop))
for varItemNum = 1 to session("systemIdCount" & arrSystems(iLoop)) '
varItemNum Loop
.........

I thought that the error was that session should be int, so add cint to the
this line: if (session("systemIdCount" & arrSystems(iLoop))) 0 However, I
got mismatch "cint" error.

What am I missing here?

Put a response.write in giving you the session variable that you're
trying to build

response.write(systemIdCount" & arrSystems(iLoop))

This will tell you the reason for the error.

Oct 26 '06 #3
Hi,
When i used to have this kind of errors in the past, the only result
was putting double quotes at the integer
which you have to replace this line
session("systemIdCount" & arrSystems(iLoop)) 0

with this
session("systemIdCount" & arrSystems(iLoop)) "0"

the common reason this error is accuring, is that when you submit
values from two fields with the same name and then retrieve it in your
code, the result will contain a comma.
So when you use the line of code [session("systemIdCount" &
arrSystems(iLoop)) 0]
what happens is this ["2, 0" 0]
which cannot be possible because you cant compare string with and
integer
so to bypass this error just put the double quotes and it will be ["2,
0" "0"]
which means it is comparing string with string, which is possible.

This should solve the problem, but since that error happened, take
advantage of it, and know where you are going wrong.

Hope what i wrote makes sense to you.
Best Regards
Firas S Assaad

On Oct 26, 3:28 pm, Snow <S...@discussions.microsoft.comwrote:
Thanks for help. I put response.write, but there was nothing shown on the page

"Larry Bud" wrote:
Snow wrote:
Hello:
I have Error Type:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: '[string: "2, 0"]'
The error happened at this line: if session("systemIdCount" &
arrSystems(iLoop)) 0
The code like this:
strSystems = session("strSystems") '' Capture SystemId Array
arrSystems = split(strSystems, ",")
iLoop = 0
For iLoop = LBound(arrSystems) to UBound(arrSystems) '' Start SystemId Array
Loop
arrSystems(iLoop) = Trim(arrSystems(iLoop))
computerCount = computerCount + 1
session("systemId" & arrSystems(iLoop)) = arrSystems(iLoop) '' Define
SystemId Session
if request.querystring("newOrder") = "true" then '' Resets Session if it is
a New Order
session("systemIdCount" & arrSystems(iLoop)) = request("systemIdCount" &
arrSystems(iLoop)) '' Define SystemId Count Session
end if
if session("systemIdCount" & arrSystems(iLoop)) 0 then '' Check if count
is grater than 0
varSysId = session("systemId" & arrSystems(iLoop))
for varItemNum = 1 to session("systemIdCount" & arrSystems(iLoop)) '
varItemNum Loop
.........
I thought that the error was that session should be int, so add cint to the
this line: if (session("systemIdCount" & arrSystems(iLoop))) 0 However, I
got mismatch "cint" error.
What am I missing here?
Put a response.write in giving you the session variable that you're
trying to build
response.write(systemIdCount" & arrSystems(iLoop))
This will tell you the reason for the error.- Hide quoted text -- Show quoted text -
Oct 27 '06 #4

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

Similar topics

10
by: Mark Sargent | last post by:
Hi All, why am I getting this error..? Cheers. Mark Sargent. Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: ''
1
by: MovnOn | last post by:
I'm writing a program that uses a COM object. If I were writing this code in VB6, the signature of the method of the COM object I need to use would be: saveMemo (Collection) The method takes a...
3
by: easter | last post by:
I have inherited an ASP site and am new to ASP. Part of the site allows the client to update event information about their centre. When they try to add a new event, the following error occurs: ...
1
by: monika | last post by:
Hello: I have Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: '' /OnlineLIB/BNosearch1.asp, line 32 The error happened at this line:bookno = chr(bookno) The code like...
1
by: makinha | last post by:
Hello, I got a type mismatch error on my script when compare the null value collect from the sql server. From the beginning, I code as below: <% If (rst_rs("Amount"))="" then %> Sorry the...
1
by: FOREST GOLDEN | last post by:
i'M want to select multiple choice by using checkbox, but it come out the above mistake, plz help me solve it, thankx....... my ItemCode is using text eg:cg001 <%@ Language=VBScript %> <HTML>...
7
by: Jimgunkel | last post by:
I'm getting an error message: Technical Information (for support personnel) Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch...
1
by: sharbha | last post by:
I am experiencing a VBScript runtime error. The error message is: "(0x800A000D)Type mismatch error" Here is my code: <% dim temp temp=session("items") ...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.