Thanks for the answer and your idea works, it it any different if I use that way or:
for n=o to 255
HSERIN [RxData(n)]
next n
except it compiles in different size?
by the way,
I was trying to load a Byte from the RxData array into the lowbyte and high byte of a word array "C_Data(x)". What would be the best way of doing (since this is not allowed)?
C_Data(x).Lowbyte=RxData(n)
C_Data(x).HighByte=RxData(n+1)
I solved this loading with using a Melanie suggested method "C_Data.lowbyte(i) =RxData(n)" but this requires that you adresses the C_Data.Lowbyte(i) not using the word count but the position of the byte in the word array so the Highbyte iadresses as C_data.Lowbyte(i+1).
I couldn't even get a temporary word variable to work but that could have been because of the time of the day.
This should work right??
Temp.Lowbyte=RxData(n)
Temp.HighByte=RxData(n+1)
C_Data(i)=Temp
Not that user friendly ;-) (at least not 3 am)
/j
Bookmarks