Set the value of the cell
Member of Grid Cell (PRIM_GDCE)
|Result||*Result (Optional)||Boolean||True if the value was set successfully|
|Value||*Input||Variant||Value to be applied|
SetValue can be used to assign a value to the grid cell. This allows a value to be set without needing to use LANSA list commands such as UPD_ENTRY, and without needing to know the fields being used as the source of the column.
In this example, a field is updated using SetValue. If it fails the code inside the IF will be executed.
If (*Not #Cell.SetValue( #NewValue )) * Update of cell failed Endif
LANSA Version 15, April 2020