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: MOD Implementation
 problem with the Poll mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

yigal7
Junior Member

297 Posts

Posted - 31 October 2005 :  09:52:41  Show Profile
when getting to the poll after
sending one i'm getting this error:
--------------
Microsoft VBScript runtime error '800a0006'

Overflow: 'cint'

/forum/inc_func_common.asp, line 62
---------------

Zuel
Average Member

USA
540 Posts

Posted - 31 October 2005 :  14:26:52  Show Profile  Visit Zuel's Homepage
Is it possible for you to post a .txt version of the file? Make sure you added all the code for the mod.

Until then this is the if statement the error occurs:


if strWhoVotes = "members" or (strWhoVotes <> "members" and mLev > 0) then
		'## Forum SQL - See if user has voted in this poll
		strSql = "SELECT TOPIC_ID " &_
			"FROM " & strTablePrefix & "POLL_VOTES " &_
			"WHERE MEMBER_ID = " & MemberID
		
		set rsPoll2 = Server.CreateObject("ADODB.Recordset")
		rsPoll2.open strSql, my_Conn, adOpenForwardOnly, adLockReadOnly, adCmdText
				
		if rsPoll2.EOF or rsPoll2.BOF then
			tmpVoted = false
		else
			do until rsPoll2.EOF or rsPoll2.BOF
				if cint(pTopic_id) = cint(rsPoll2("TOPIC_ID")) then
					tmpVoted = true
					exit do
				else
					tmpVoted = false
				end if
				rsPoll2.MoveNext
			loop
		end if
		
		rsPoll2.close
		set rsPoll2 = nothing
	end if


My Completed Mods: News Mod | Zuel's Avatar Add-on
In Development: World of Warcraft Member Roster | [C# Based Forum]

Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.

MSN / E-Mail: ucyimDa_Ruler@Hotmail.com

Personal Bookmarks: How to work a DBS File
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 31 October 2005 :  21:48:54  Show Profile
There are many topics about this. See here for one of them: http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=56724

Support Snitz Forums
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.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07