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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Hidden Content for Members Only
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

leatherlips
Senior Member

USA
1838 Posts

Posted - 31 July 2009 :  17:37:42  Show Profile  Visit leatherlips's Homepage  Reply with Quote
Thanks Carefree.

I'm getting this error:

Microsoft VBScript compilation error '800a0410' 

Invalid 'for' loop control variable 

/forum/inc_func_common.asp, line 2092 

for i=1 to len(Request.ServerVariables("URL"))


Here is the whole section of code:

if mLev=0 and inStr(fString,"[mp3") then
         for i = 1 to len(fString)
            if mid(fString,i,5)="[mp3]" then ij=i
            if mid(fString,i,6)="[/mp3]" then
               ik=i

               if inStr(Request.ServerVariables("URL"),"/") then
   for i=1 to len(Request.ServerVariables("URL"))
      if mid(Request.ServerVariables("URL"),i,1)="/" then
         strURL = mid(Request.ServerVariables("URL"),i+1)
      end if
   next
else
   strURL = Request.ServerVariables("URL")
end if
left(fString,ij-1)+"<a href=""login.asp?target="& strURL &"""><img border=""0"" src=""images/members.bmp"" width=""350"" height=""56"" alt=""Members Only""></a>"+mid(fString,ik+6)



            end if
         next
         strTempString=strTextString
      end if



Mangione Magic Forum - The Music of Chuck Mangione

My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD

Edited by - leatherlips on 31 July 2009 17:38:27
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 31 July 2009 :  18:02:54  Show Profile  Reply with Quote
quote:
Originally posted by leatherlips

Thanks Carefree.

I'm getting this error:

Microsoft VBScript compilation error '800a0410' 

Invalid 'for' loop control variable 

/forum/inc_func_common.asp, line 2092 

for i=1 to len(Request.ServerVariables("URL"))


Here is the whole section of code:

if mLev=0 and inStr(fString,"[mp3") then
         for i = 1 to len(fString)
            if mid(fString,i,5)="[mp3]" then ij=i
            if mid(fString,i,6)="[/mp3]" then
               ik=i

               if inStr(Request.ServerVariables("URL"),"/") then
   for ji=1 to len(Request.ServerVariables("URL"))
      if mid(Request.ServerVariables("URL"),ji,1)="/" then
         strURL = mid(Request.ServerVariables("URL"),ji+1)
      end if
   next
else
   strURL = Request.ServerVariables("URL")
end if
left(fString,ij-1)+"<a href=""login.asp?target="& strURL &"""><img border=""0"" src=""images/members.bmp"" width=""350"" height=""56"" alt=""Members Only""></a>"+mid(fString,ik+6)



            end if
         next
         strTempString=strTextString
      end if






Well, naturally. We are re-using/defining the variable "i" within a loop - can't do that. So simply change the second series of "i" variables to "ji" and the problem will go away.
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.07 seconds. Powered By: Snitz Forums 2000 Version 3.4.07