PDA

View Full Version : Addressing array bits



PlantBob
- 18th January 2011, 19:43
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?

pedja089
- 18th January 2011, 21:19
Try if HC.0[indexC]= 1 then