Progress
Language Reference
GET-SHORT Function
Returns the signed 16-bit value at the specified memory location as an INTEGER.
SYNTAX
source
A function or variable that returns a RAW or MEMPTR value. If source is the unknown value, GET-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.
EXAMPLESFor examples of how to use the GET-SHORT function, see theGET-BYTE Function reference entry.
NOTES
- This function supports byte-swapping only if source is a MEMPTR data type. The function will first examine the byte-order setting of the MEMPTR and then swap the bytes appropriately before interpreting them. Progress does not swap the bytes in the MEMPTR’s memory, but does the byte-swap as it creates the return value.
- For more information on using the MEMPTR data type, see the chapter on Windows dynamic link libraries (DLLs) in the Progress External Program Interfaces manual.
- For more information on using the RAW data type, see the Progress Programming Handbook .
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 |