byteget()

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

Syntax

byteget(binary,byteNumber)

Description

Returns the value of the byte at the specified byteNumber in binary as an integer (0-255), or -1 if an error occurs.

Example

Calculate lBinary as chartoutf8('This is a test')
Calculate myInt32 as byteget(lBinary,2)    ## returns the ASCII code for 'i' (105)