Addressing array bits


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2008
    Posts
    43

    Default Addressing array bits

    HC var long[16]
    HC = %0110000000000000
    If I use this

    if HC.0= 1 then
    high led4
    else
    low led4
    endif

    it compiles

    If I try this it won't

    if HC.[indexC]= 1 then
    high led4
    else
    low led4
    endif
    the compiler doesn't like the '.'

    How can I do this?

  2. #2
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default

    Try if HC.0[indexC]= 1 then

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