Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 datatype mismatch error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rahanini
Starting Member

35 Posts

Posted - 24 September 2002 :  19:47:07  Show Profile  Send Rahanini an AOL message
My question is regarding a datatype mismatch error. The error is coming back in default.asp when

CatID = allForumData(fCAT_ID, iForumCheck)

it seems that CatID is a number and the value returned by allForumData is also a number. HOwever I am getting this type mismatch error.

I searched for the Function allForumData however did not find any subroutine declaration. i am very confused as to how allForumData is being passed values without it being a function. Is this a VB script thing that I am not understanding?

the closest thing I found that gave allForumData a value was the following:

allForumData = rs.GetRows(adGetRowsRest)

but Now this confuses me cause it seems like allForumData is a variable...however it is not declared anywhere.

Help would be very appreciated. Thank You.

samir.

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 September 2002 :  19:54:38  Show Profile  Send ruirib a Yahoo! Message
What Snitz version are you using?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Rahanini
Starting Member

35 Posts

Posted - 24 September 2002 :  20:26:20  Show Profile  Send Rahanini an AOL message
i am using 3.4.03
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 September 2002 :  21:12:23  Show Profile
is this a brand new install? If so, did you run setup.asp ?
Go to Top of Page

Rahanini
Starting Member

35 Posts

Posted - 24 September 2002 :  21:32:11  Show Profile  Send Rahanini an AOL message
yes i did run setup.asp...

could you tell me anything about allforumdata? is it a function, variable??...and if its a function how is it declared...and if its a variable how does it get passed values...

thank you
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 September 2002 :  21:33:39  Show Profile
it's an array that holds all of the data from the Database Query.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 September 2002 :  22:03:00  Show Profile  Send ruirib a Yahoo! Message
Did you forum version 3.4.03 ever worked correctly, or did this happen immediately after you upgraded?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Rahanini
Starting Member

35 Posts

Posted - 24 September 2002 :  22:33:08  Show Profile  Send Rahanini an AOL message
yes it did work correctly. I did some stuff to the database and these problems are happening.

so when the forum says this:

CatID = allForumData(fCAT_ID, iForumCheck)

and allForumData is an array...is it placing the values fCAT_ID and iForumCheck inside the array allForumData then CatID becomes a new array...or something else. basically what happens to CatID.?

thank you

Edited by - Rahanini on 24 September 2002 22:37:40
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 September 2002 :  22:42:46  Show Profile
What exactly did you do to the database?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 September 2002 :  22:43:15  Show Profile  Send ruirib a Yahoo! Message
You did some stuff to the database? What stuff?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Rahanini
Starting Member

35 Posts

Posted - 25 September 2002 :  05:47:53  Show Profile  Send Rahanini an AOL message
Well I have been attempting to port this Forum to Oracle. I am getting close but while debugging I just need to know what various functions in the forum are doing. This is why I am asking how allForumData etc is getting values. I now understand how this works though with your help.

The problem I am facing with datatype mismatch errors is that for some reason, though I have set up the database in Oracle identical to that in access, when the forum brings information back from the Oracle Database, it always brings it back as a string....even when sometimes i need a number. So this is why this error is happening. I need to figure out what is going on that makes the data coming from Oracle always be a string and how to change this so that it brings back the correct type, a string or a number.

I think it has to do with the way i have set up the tables in oracle...i might be missing something somewhere....i have been posting questions on various sites trying to figure this out. but for these forum specific questions, rather that spending all this time trying to understand it, i figure why not just ask you guys, the developers. =)
Go to Top of Page

Rahanini
Starting Member

35 Posts

Posted - 26 September 2002 :  22:22:43  Show Profile  Send Rahanini an AOL message
i fixed this problem by forcing the variables comming back from the database to numbers using the vbscript function CLng

thought id just end this topic with a solution
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 26 September 2002 :  22:24:54  Show Profile  Send ruirib a Yahoo! Message
Nice to know it's fixed.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07