forlang.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DEALLOCATE
                                             Up Contents Index Back
─────DEALLOCATE─────────────────────────────────────────────────────────────
 
     Action
 
     Frees the array storage space previously reserved in an ALLOCATE
     statement.
 
     Syntax
 
     DEALLOCATE (arraylist [, STAT = ierr])
 
     Parameter          Description
 
     arraylist          A list of allocatable array names separated by
                        commas.
 
     ierr               An integer returning the error status.
 
     Remarks
 
     The STAT= parameter must appear last.
 
     Attempting to deallocate an array that was not allocated causes a
     run-time error.
 
     Any deallocation failure causes a run-time error, unless the
     STAT= parameter is present. The <ierr> variable returns a value of
     zero if the deallocation was successful, and the number of the
     run-time error if the deallocation failed.
 
     Example
 
           INTEGER  dataset[ALLOCATABLE](:,:,:)
           INTEGER  reactor, level, points, error
           DATA  reactor, level, points  / 10, 50, 10 /
 
           ALLOCATE (dataset(1:reactor,1:level,1:points), STAT = error)
 
           DEALLOCATE (dataset, STAT = error)
                                    -♦-