Quick comparison area of MemoryBlock

Hi,

how am I able to quickly compare two parts of two MemoryBlocks.
For Example

byteRanges(0-15, 100-160, 200-201) to the same Ranges in another MemoryBlock Object?

Is there a way to do this without using Loops?

Maybe copy these ranges out in a new Memory Block and then compare it to the other. But how can I copy ranges very efficiently?

if strComp(memoryBlock1.Stringvalue(0,15), memoryBlock2.Stringvalue(0,15), 0) = 0 then

See http://documentation.xojo.com/index.php/MemoryBlock.StringValue
http://documentation.xojo.com/index.php/StrComp

Careful not to exceed the size of the MemoryBlock to avoid an OutOfBoundException.

Thank you Michel, looks very fine.