Products Downloads


French version


 

 

ADELIA

      

      

      

      

(I/B)

 

 

 

 

 

Warning: In the case of ADELIA programs, this instruction is not compatible with the Adelia iSeries Studio C generator or with Adelia/400.

 

Section for use

All

 

Syntax

ALLOCATE Length PointerVarId

 

Length

Integer numeric constant or integer-numeric variable.

PointerVarId

Pointer-type variable.

This type is mainly used to create an interface with APIs not developped with Adelia.

 

Description

Allows heap storage to be allocated.

The ALLOCATE instruction allocates heap storage and sets the result-field pointer to point the storage. The storage is uninitialized.

The inverse instruction is DEALLOCATE.

 

It is possible to REALLOCATE heap storage to a pointer.

 

Example

Assume WW_Point is pointer variable

ALLOCATE 32 WW_Point

 

See also the list of 4GL instructions by topic

↑ Top of page


  • Aucune étiquette