adnan13 Posted January 2, 2012 Share Posted January 2, 2012 I have got one error in opening page inmy website, actually this sources are old and i am not familiar with this.. plz help me.. Error: Microsoft VBScript runtime error '800a0009' Subscript out of range: '[number: 0]' /rescontrol/Default.asp, line 72 Plz check out here this link http://desert.somee.com/rescontrol/ Full Source Code can be found in http://pastebin.com/QthvEubE function DecryptData(s)dim spdim dStrdim decry_stratdim decry_strdim decrdim i,tempdStr=ssp=split(dStr,"Z")decry_strat=eval(mid(sp(0),2,1)) i get error over here when i try to open page decr=decry_strat'Response.write Chr(sp(1)) 'Response.Write ubound(sp)for i=2 to ubound(sp)decry_str=decry_str & chr(cint("&H" + sp(i-1))-decr)decr=decr + decry_strat next DecryptData =decry_str end function Link to comment Share on other sites More sharing options...
adnan13 Posted January 3, 2012 Author Share Posted January 3, 2012 any help??? pz.. Link to comment Share on other sites More sharing options...
justsomeguy Posted January 3, 2012 Share Posted January 3, 2012 A subscript out of range means you're trying to access an item that doesn't exist. If the split results in 3 items, and you try to access the fourth one, you'll get that error. Link to comment Share on other sites More sharing options...
adnan13 Posted January 4, 2012 Author Share Posted January 4, 2012 A subscript out of range means you're trying to access an item that doesn't exist. If the split results in 3 items, and you try to access the fourth one, you'll get that error.Thanks for ur reply... i dont have any knowledge in this.. can u plz help me? Link to comment Share on other sites More sharing options...
justsomeguy Posted January 5, 2012 Share Posted January 5, 2012 Verify the data that you're working with: Response.Write("value: " & Dstr & "<br>")Response.Write("split: " & sp(0) & "<br>")Response.Write("mid: " & mid(sp(0), 2, 1) & "<br>")decry_strat=eval(mid(sp(0),2,1)) The problem may be in the data that you're working with where your code isn't doing any error checking, or it may be a problem in the code being passed to eval. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.