Results 1 to 5 of 5

Thread: getting value byte array - why is this n/w?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Location
    california
    Posts
    245

    getting value byte array - why is this n/w?

    why is this not working?

    It should give me the value in the first position of the byte array, yes?

    VB Code:
    1. MsgBox ("rArray 1: " & rArray(1))

    Thanks for any help
    - Jake

  2. #2
    Lively Member
    Join Date
    Oct 2002
    Location
    Los Angeles, CA
    Posts
    73
    did you assign any string to byte array?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Location
    california
    Posts
    245
    yeah using this:

    VB Code:
    1. Dim o1RB As Byte, tfTarg As Long, rArray() As Byte
    2. Get #f, 11, o1RB
    3. ReDim rArray(71 To o1RB)
    4. Get #f, 71, rArray()

  4. #4
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    VB Code:
    1. ReDim rArray(71 To o1RB)

    Would set the lowest element as 71.
    Therefore, rArray(1) should actually give you an out of bounds exception....

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Location
    california
    Posts
    245

    Talking

    Thanks, that clears it up a lot.

Posting Permissions

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



Click Here to Expand Forum to Full Width