SetValue Method

Sets the value of the referenced cell.


Syntax

object.SetValue Row, Col, NewVal

The syntax of the SetValue method has these parts:

PartDescription
objectA DGrid control.
Row   The row number to set.
Col   The column number set.
NewVal   The New Value to set.

Return Value Long

Returns -1 if an error occurs, otherwise 0.

Data Type

Row  Long
Col  Long
NewVal  Variant