Thanks Don,
No, both [] and () should work as far as I know. I tried and it didn't make a difference.
The problem definitely is in the bit-indexing not allowing me to index above 255....
Take a look at this example:It gives the following results:Code:Buffer VAR BYTE[256] Index VAR WORD CLEAR HSEROUT["Buffer[32]: ", DEC Buffer[32],13] Buffer.0[256] = 1 ' Set LSB of Buffer[32] HSEROUT["Buffer[32]: ", DEC Buffer[32],13] Index = 256 Buffer.0[Index] = 0 ' Clear LSB of Buffer[32] HSEROUT["Buffer[32]: ", DEC Buffer[32],13] Pause 100 END
As you can see, direct/literal indexing the 256'th bit works but doing it thru a variable doesn't. In Melanies example (which may be in error) she states that it should be possible to index bits above 255 this way (as long as the indexing variables is WORD, which it is in my case).
I have no problem index bytes (as bytes) above 255, it's just this bit-indexing that is screwing with me.
/Henrik.




Bookmarks