Description
Sets the values for the GridCell objects in the GridCellGroup to the numeric values in the newValue Array with precision as the number of digits past the decimal shown when viewing the cells.
Timing Precision Mode
This page describes functionality in nanosecond timing precision mode.
Click here to see the documentation for this object in millisecond timing precision mode.
Method Signature
Arguments
newValue
|
|
Description:
|
The array of values to set to the GridCell objects in the GridCellGroup.
|
Required Size:
|
At least 0
|
precision
|
|
Description:
|
The precision, or number of digits past the decimal, that will be viewed in the cell.
|
Syntax
myGridCellGroup1.SetValue(myArray1, myVariable1);
|
The script example below shows how a Array object can easily be added to a GridWindow all at once using a GridCellGroup with decimal alignment.
// Add an Array to the GridWindow with decimal alignment
Array a = {1, 2, 3, 5};
GridWindow gw;
gw.Show();
gw.NumberOfRows = 1;
gw.NumberOfColumns = a.Dimension;
gw.GetCellGroup( 0, 0, 0, a.Dimension-1).SetValue(a, 2);
|
.
|
See also
GridCellGroup Object
GridCellGroup.SetValue
GridWindow Guide
|