Returning the value of a specified byteΒΆ

getbyte()

Return the value of a specified byte


SYNTAX

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.


EXAMPLE

!temp Bstring,,b255

  getbyte(tmp.Bstring, 42)