bytemid()

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

Syntax

bytemid(binary1,firstbytenumber,lastbytenumber)

Description

Returns a binary value identified as a range of bytes in a binary field (all bytes between firstByteNumber and lastByteNumber inclusive).

The following example sets lBinary2 to the value generated by extracting bytes lFirstByteNumber to lSecondByteNumber inclusive of lBinary1. Thus byte 0 of lBinary2 becomes byte lFirstByteNumber oflBinary1, and so on.

Example

Calculate lBinary2 as  bytemid(lBinary1,lFirstByteNumber,lSecondByteNumber)