| Function group | Execute on client | Platform(s) |
| Binary field | NO | All |
bytemid(binary1,firstbytenumber,lastbytenumber)
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.
CalculatelBinary2asbytemid(lBinary1,lFirstByteNumber,lSecondByteNumber)