binsearch()

Function group Execute on client Platform(s)
Binary Field NO All

Syntax

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

Description

Returns the zero-based 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)