GET-BYTE function
Returns the unsigned 1 byte value at the specified memory location as an INTEGER value.
Syntax
source
position
ExamplesIn this example, the RAW function goes to the Customer field in the non-OpenEdge database. The GET-BYTE function accesses the first byte and stores the integer value of that byte in the variable ix. The procedure then tests the value, if the integer value is 83 (the character code value for S), the AVM displays the Customer Name.
The next procedure sets up a MEMPTR region with a character string and uses the GET-BYTE function to display the character code value of each character in the string:
NotesSee alsoLENGTH function, PUT-BYTE statement, RAW function, RAW statement, SET-SIZE statement
OpenEdge Release 10.2B
|