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
FindByteUINTfunction returns 0 if “byValue” is not found. Otherwise the function returns the position of the first occurence
Input
pMemoryBlockPOINTER TO BYTE
address of MemoryBlock
uiLengthUINTlength of MemoryBlock in byte
byValueBYTEvalue to look for in MemoryBlock