Progress
Language Reference


GET-UNSIGNED-SHORT Function

Interfaces
OS
SpeedScript
All
All
Yes

Returns the unsigned 16-bit value at the specified memory location as an INTEGER.

SYNTAX

GET-UNSIGNED-SHORT ( source , position ) 

source

A function or variable that returns a RAW or MEMPTR value. If source is the unknown value, GET-UNSIGNED-SHORT returns the unknown value (?).

position

An integer value greater than 0 that indicates the byte position where you want to find the information. If position is greater than the length of source, Progress returns the unknown value (?). If position is less than 1, Progress generates a run-time error.

EXAMPLES

For examples of how to use the GET-UNSIGNED-SHORT function, see the GET-BYTE Function reference entry.

NOTES

SEE ALSO

LENGTH Function, PUT-SHORT Statement, RAW Function (ORACLE only), RAW Statement (ORACLE only), SET-SIZE Statement


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