Hi guys,
I have a for loop with which i want to sum the bytes in a packet from the 3rd position to the 50th position (assuming that the number of bytes are 55).
So i have done the following;
dim i, sum as integer
sum=0
for i = p2 to p50
sum=sum+i
next
It does not sum the bytes from p3 to p50 (where p is the postion of the index such that p0 will be the first byte.
Can anyone help please?
Thanks...
I have a for loop with which i want to sum the bytes in a packet from the 3rd position to the 50th position (assuming that the number of bytes are 55).
So i have done the following;
dim i, sum as integer
sum=0
for i = p2 to p50
sum=sum+i
next
It does not sum the bytes from p3 to p50 (where p is the postion of the index such that p0 will be the first byte.
Can anyone help please?
Thanks...