Description
Sets the values for the GridCell objects in the GridCellGroup to the numeric values in the newValue Matrix 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.
Method Signature
Arguments
newValues
|
|
Description:
|
The matrix of values to set to the GridCell objects in the GridCellGroup.
|
Required Size:
|
Min Rows = 1, Min Cols = 1
|
precision
|
|
Description:
|
The precision, or number of digits past the decimal, that will be viewed in the cell.
|
Syntax
myGridCellGroup1.SetValue(myMatrix1, myVariable1);
|
The script example below shows how a Matrix object can easily be added to a GridWindow all at once using a GridCellGroup with decimal alignment.
// Add a Matrix to the GridWindow with decimal alignment
Matrix m = [1, 2; 3, 5];
GridWindow gw;
gw.Show();
gw.NumberOfRows = m.RowCount;
gw.NumberOfColumns = m.ColumnCount;
gw.GetCellGroup(0, 1, 0, 1).SetValue(m, 2);
|
|
See also
GridCellGroup Object
GridCellGroup.SetValue
GridWindow Guide
|