cArray: NewArray

NewArray

Creates an array of values.



 Public Function NewArray(
	  ByVal ArrayType As ciArrayTypes,
	  ParamArray ArrayElements ( ) As Variant ) As Variant

Parameters

ArrayType
[ByVal] ciArrayTypes. The target datatype of the resultant array and the values to be converted to.
ArrayElements
[ByRef] Variant. The values to be put into the new array.

Return Values

Variant -  An array of the specified datatype and containing the array elements with conversion. Or an empty array if no elements are defined.

Elements of a size that are a multiple of 4 will not create a new array when being returned. All other datatype sizes will cause a new array to be created.

Remarks

See Also

Project VBCorLib Overview Class cArray Overview cArray Properties cArray Methods LastIndexOf Reverse