Results 1 to 3 of 3

Thread: Please help

  1. #1
    Join Date
    Feb 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Please help

    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

    Code:
    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)

  2. #2
    Join Date
    Mar 2006
    Posts
    600
    Thanks
    5
    Thanked 4 Times in 4 Posts

    Default

    Quote Originally Posted by beg.webmaster
    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.

  3. #3
    Join Date
    Feb 2007
    Location
    🌎
    Posts
    528
    Thanks
    10
    Thanked 10 Times in 10 Posts
    Blog Entries
    2

    Default

    Um.. 0, 1, 2, 3...
    ....(o_ Penguins
    .---/(o_- techno_racing
    +(---//\-' in
    .+(_)--(_)' The McMurdo 500

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •