Android Question Seekbar values in array unexpected

Discussion in 'Android Questions' started by saunwin, Aug 26, 2015.

  1. saunwin

    saunwin Member Licensed User

    Hello,

    I have a seekbar which according to it's properties should go from 0 to 255.
    label2.Text shows the correct value (0 to 255)
    However the array contains 0 to 127 correctly (halfway up the seekbar) then the seekbar.value puts -127 to -1 for the rest of it's travel.

    Sub SeekBarred_ValueChanged (Value As Int, UserChanged As Boolean)
    label2.Text="Red Value - "& seekbarred.Value
    pmxpacket(pmxpacketentry)=seekbarred.Value

    What have I done wrong ?
    Thanks in advance
     
  2. saunwin

    saunwin Member Licensed User

    Sorry Peeps - I finished posting this question when I realized what I had done.
    (I'd declared the pmxpacket array as type BYTE and not INT)
     
    Erel likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice