Click here to Skip to main content
16,016,168 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
0F663E332543434343434343434343514343435B

this is my hex data containing 20 bytes of data how can i know the byte count and address and record type for this in VB6

What I have tried:

0F663E332543434343434343434343514343435B
Posted
Updated 28-Feb-18 11:06am
Comments
Richard MacCutchan 28-Feb-18 9:26am    
You need to know the record type from the source of the data, since it can use any identifier (or none) to specify it.

Quote:
how can i know the byte count and address and record type for this in VB6

An hex sequence is an arbitrary set of bytes, and it have no meaning, no address, no structure unless you already have an idea of what is the sequence.
 
Share this answer
 
A 2 hex-digit number represents an 8-bits, or 1-byte value.
Given a n-length hexadecimal number, the number of bytes is thus n / 2 (the number of bits is n * 4).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900