Progress
Language Reference


PUT-LONG Statement

Interfaces
OS
SpeedScript
All
All
Yes

Stores the signed 32-bit value of an INTEGER expression at the specified memory location.

SYNTAX

PUT-LONG ( destination , position ) = expression 

destination

A variable of type RAW or MEMPTR. If destination is the unknown value (?), it remains the unknown value. If destination is a MEMPTR and its region in not allocated (by a SET-SIZE statement or by a Windows dynamic link library (DLL) or UNIX shared library routine), Progress generates a run-time error.

position

An INTEGER value greater than 0 that indicates the byte position where Progress stores expression. If position is less than 1, Progress generates a run-time error.

For a RAW destination, if position is greater than the length of destination, Progress increases the length of destination to position plus the remaining bytes needed to store expression. The gap between the original destination length and position is padded with null bytes.

For a MEMPTR destination, if position is greater than the length of destination or does not leave sufficient room to store expression, Progress generates a run-time error.

expression

The INTEGER value of a constant, field, variable, function, or expression.

EXAMPLE

For examples of how to use the PUT-LONG statement, see the PUT-BYTE Statement reference entry.

NOTES

SEE ALSO

GET-LONG Function, LENGTH Function, LENGTH Statement (ORACLE only), 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