Grid Cell - SetValue Method
Set the value of the cell
Member of Grid Cell (PRIM_GDCE)
Parameters
Name |
Type |
Data Type |
Description |
Result |
*Result (Optional) |
Boolean |
True if the value was set successfully |
Value |
*Input |
Variant |
Value 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
EndifSee also
All Component Classes
Technical Reference