Log in

View Full Version : Please help



beg.webmaster
07-27-2008, 05:42 PM
I'm making a basic 128-bit encryption script in VBS, and the only part that's throwing an error is generating a 128 random number array. Please check my code and see what's wrong. The error I get is
Subscript out of range:'[string:"1"]' on line 7. But I set the array to have 128 values (0-127), and 1 isn't in between those values? Please help



i="0"
do until i="129"
i=i+1
randomDec=(rnd*9)
random=Round(randomDec)
key=array(127)
key(""&i)=random
loop
null1=InputBox("Your key is:","Key",""&key)

benslayton
07-28-2008, 04:02 AM
Please help

NO, change the title and then I will read your thread. If you cant change it b/c its been to long then contact a moderator to change it. Mods have an image that says "Moderator" below their name.

Im not trying to be cruel or mean. But it really helps out people when your title does not say Please Help... Most people wouldnt have even come in here. When you use a descriptive title you get help a lot faster.

techno_race
08-15-2008, 11:18 PM
Um.. 0, 1, 2, 3...