Grid Cell - SetValue Method

Set the value of the cell

Member of Grid Cell (PRIM_GDCE)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)BooleanTrue if the value was set successfully
Value*InputVariantValue to be applied

Details

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.

Example

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

See also

All Component Classes

Technical Reference

LANSA Version 15, April 2020