how can I test a bit in a arrow


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: how can I test a bit in a arrow

    Quote Originally Posted by kik1kou View Post
    ...
    if buffer[1].2 == 1 then ... 'test bit 2 of buffer[1]

    (the value is just an exemple)
    but "buffer[1].2" don't work and return an error
    ERROR Line 93: This style array syntax not supported, (test.pbp)
    how can I test a bit in a arrow?
    Another idea to test bits of an array variable, use a temp variable
    Code:
    TempVar = Buffer[1]
    If TempVar.2 == 1 then.....
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Mar 2011
    Posts
    13


    Did you find this post helpful? Yes | No

    Default Re: how can I test a bit in a arrow

    Quote Originally Posted by mister_e View Post
    Another idea to test bits of an array variable, use a temp variable
    Code:
    TempVar = Buffer[1]
    If TempVar.2 == 1 then.....
    yes I do the same, but I thinked have more simple code for do it

    sorry for the english 'arrow => array' ;-)

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: how can I test a bit in a arrow

    That would be great if there was a direct way to do it like you wrote, but I don't know any way to do it AS-IS.
    sorry for the english 'arrow => array' ;-)
    sssshhh, that will be our secret Don't worry... i'm not English either.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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