FindByte (FUN)

FUNCTION FindByte : UINT

Function look for the first occurence of “byValue” in “MemoryBlock”.

Example:

abyMemoryBlockA : ARRAY[0..9] OF BYTE := 0,1,2,3,4,5,6,7,8,9 ;
->
MEM.FindByte(ADR(abyMemoryBlockA),10,5) = 6
InOut:

Scope

Name

Type

Comment

Return

FindByte

UINT

function returns 0 if “byValue” is not found. Otherwise the function returns the position of the first occurence

Input

pMemoryBlock

POINTER TO BYTE

address of MemoryBlock

uiLength

UINT

length of MemoryBlock in byte

byValue

BYTE

value to look for in MemoryBlock