PreviousNextIndex

RAW function


(ORACLE only)

Extracts bytes from a field.

Syntax

RAW ( field [ , position [ , length ] ] ) 

field
position
length
Example

This procedure extracts bytes from the Name field of the first Customer, starting at byte 8, and writes 4 bytes to the variable r1:

r-rawfct.p
/*You must connect to a non-OpenEdge demo database to run this procedure*/ 
DEFINE VARIABLE r1 AS RAW NO-UNDO. 
FIND FIRST Customer NO-LOCK. 
r1 = RAW(Customer.Name,8,4). 

Notes
See also

GET-BYTE function, LENGTH statement, PUT-BYTE statement, RAW statement


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex