Progress
Language Reference


SET-BYTE-ORDER Statement

Interfaces
OS
SpeedScript
All
All
No

Sets an internal indicator designating the byte-order of the data pointed to by the MEMPTR variable.

SYNTAX

SET-BYTE-ORDER( memptr ) = integer-expression 

memptr

An expression that returns a MEMPTR.

integer-expression

An expression that returns an integer value that will be used to indicate the byte-ordering of the data in the memory to which the MEMPTR points. integer-expression must be one of the reserved keywords defined in Table 40 or its corresponding value. If integer-expression is not valid, Progress generates an error.

Table 40: Byte Order Options 
Keyword
Value
Description
HOST-BYTE-ORDER
1
Same format as the machine where the process that calls SET-BYTE-ORDER is running
BIG-ENDIAN
2
A multiple-byte data type is stored with the high-order byte in the lowest address reserved for the data; successively lower-order bytes are stored at successively higher addresses. Note that Internet protocols use BIG-ENDIAN byte-ordering.
LITTLE-ENDIAN
3
A multiple-byte data type is stored with the low-order byte in the lowest address reserved for the data; successively higher-order bytes are stored at successively higher addresses.

NOTES

SEE ALSO

GET-BYTE-ORDER Function


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095