Dispose

Prev Next Home Home Table Of Contents Index

Dispose (Variable)

This command reclaims memory used by a string variable, file variable, or an array. If you are doing a lot of data manipulation, you might want to reclaim memory space used by arrays you are done with. The disposed variable becomes an untyped variable.


Example:
Loop 20 MyArray[LoopIndex] = LoopIndex

;Check to See Also: if number is odd or even If (MyArray[LoopIndex] Mod 2) = 0 Writeln('MyArray[' + Str(LoopIndex) + '] is an EVEN number.' ); Else Writeln('MyArray[' + Str(LoopIndex) + '] is an ODD number.' ); Endif EndLoop

;We're finished with the array so reclaim its memory space. Dispose(MyArray)

The dispose command will take multiple parameters on the same line.


 Example
   Dispose X Y Z

Category: Memory Array

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home