GetCodeMemory Method


This method will read the requested memory from the Program Memory Space. The requested Code memory must be located in the target device's Program Memory Space. Special attention should be paid when reading from a sector that has been read locked. Reading from a sector that has been read locked will always return 0's. Also note, reading of the reserved space is not allowed. Reading from the reserve space will always throw an exception.


Syntax
[ bArray = ] object.GetCodeMemory( _
        nStartAddress As Long, _
        nLength As Long _
    )

Parameters
nStartAddress
    The start address of the memory location to be referenced.
nLength
    The number of bytes to read from memory.

Possible Values
bArray
    If the function completes successfully, the Byte() returned
    will contain the requested memory.