Description
Sets the value stored in the cell to the numeric value newValue with precision as the number of digits past the decimal shown when viewing this cell.
Timing Precision Mode
This page describes functionality in millisecond timing precision mode.
Click here to see the documentation for this object in nanosecond timing precision mode.
Method Signature
Arguments
newValue
|
|
Description:
|
The value to set to the cell.
|
precision
|
|
Description:
|
The precision, or number of digits past the decimal, that will be viewed in the cell.
|
Syntax
myGridCell1.SetValue(myVariable1, myVariable2);
|
The example below shows how to populate a GridCell with a variable with decimal precision.
// Add a value to the GridWindow
Spacecraft sc;
GridWindow gw;
gw.Show();
gw.NumberOfRows = 1;
gw.NumberOfColumns = 2;
gw.GetCell(0,1).SetValue(sc.A, 2);
// This data will now show as decimal-aligned with a precision of 2 places
|
|
See also
GridCell Object
GridCell.SetValue
GridWindow Guide
|