bytemid()

Function groupExecute on clientPlatform(s)
Binary fieldNOAll

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 of lBinary1, and so on.

Example

Calculate
 
lBinary2
 as 
bytemid
(
lBinary1
,
lFirstByteNumber
,
lSecondByteNumber
)