SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎target.array‎ > ‎

Allocate


Platform Objects


Description

Allocate specifies the size of an array for situations where you know the exact size of your desired array.

Syntax


trg.array.Allocate(size)

size (input) - Number of elements in the array

Return value

               

                   This function does not return a value.

Sample


        '---------- Start ----------

      Function Start


          trg.array.Allocate( 4 )

          

      End Function

         
                    In this case we allocate 4 elements in the array so it would range from arr(0) to arr(3).

See also


Platform Objects and Methods
target.array.Add()
target.array.Chop()
target.array