SetArraySize

Prev Next Home Home Table Of Contents Index

SetArraySize (Array,Size)

If the array is larger than Size the array is truncated. If it is smaller, memory is allocated for the array.


Example:
var Numbers Numbers = Set[1,2,3,4,5] ;Variable Numbers becomes an array containing 1 through 5

SetArraySize(Numbers,10) ;memory is allocated for the array, 5 empty elements giving a total of 10

SetArraySize(Numbers,4) ;the array Numbers is truncated, Numbers now contains 1,2,3, and 4

Category: Array

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home