Splitting multibyte variables
In Delphi and most assemblers I can split CRC into 2 bytes by (or similar)
CRChi=High(CRC) 'Get the top 8 bits
CRClo=Low(CRC) ''Get the bottom 8 bits
How do I do this in VB2005?
As you may gather I want to get the CRC value for strings or characters send out and then append the CRC (it may be High/Low or Low/High). If there is a way of dividing even larger integers such as 3 or 4 bytes (for 24 and 32 bits CRC) then it would even be better. I have seen something about converting integers into byte arrays but I'm not clear on how to go about it.
Thanks, you lot have been very helpful so far![]()
![]()

