binsearch()

Function groupExecute on clientPlatform(s)
Binary fieldNOAll

Syntax

binsearch(binary1,binary2[,start-from])

Description

Returns the zero-based byte position of binary1 in binary2, or returns -1 if not found.

start-from is the zero-based index of the byte in binary2 where the search is to start. If omitted, start-from defaults to zero at the start of binary2.

Example

Calculate
 
lPosition
 as 
binsearch
(
lBinary1
,
lBinary2
,5)