Array.Fill(Variable, Variable) Method

Top 

Description

Resizes the array to the specified size and fills it with the specified value.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

Array.Fill(

Variable value,


Variable numElements)

 

 

Arguments

value


Description:

The value to fill the array with.

 

 

numElements


Description:

The new size of the array.

Valid Range:

numElements ≥ 1

 

 

 

Syntax

myArray1.Fill(myVariable1, myVariable2);

 

 

See also

Array Object

Array.Fill

Matrix, Array, and Variable Math Guide