473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 30831

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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
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,...
0
isladogs
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...

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.