Returning the value of a specified byteΒΆ


Return the value of a specified byte


getbyte(field_id | expression, position)

Returns the value (0-255) of the byte specified by position in the given field name or expression. The first byte is position 1. The function is designed to retrieve an individual byte from a user defined or binary data type. The related setbyte() function allows individual bytes to be set.

This function returns an integer in the range 0-255.


!temp Bstring,,b255

  getbyte(tmp.Bstring, 42)