Since you are using a Serial Interface, I would guess that the data is being sent/received in Bytes. So you are really looking at an array of 32 bytes. Some great info can be found in this thread by Melanie.

Here is the summary. Use an array of bytes like...

MyDataArray var BYTE [32]

Now, if you need to address a specific bit in that array, you can do this like so...

MyDataArray.0(bitnumber)

Remember, that arrays begin at the 0 index. So, using the previous example...

If bitnumber=0 then it will reference MyDataArray(0) bit(0)
If bitnumber=7 then it will reference MyDataArray(0) bit(7)
If bitnumber=8 then it will reference MyDataArray(1) bit(0)
If bitnumber=15 then it will reference MyDataArray(1) bit(7)
....
If bitnumber=248 then it will reference MyDataArray(31) bit(0)
If bitnumber=255 then it will reference MyDataArray(31) bit(7)

Just one way of many to get this done.

SteveB