GetValue Method

Returns the value contained in the referenced cell.


Syntax

object.GetValue Row, Col

The syntax of the GetValue method has these parts:

PartDescription
objectA DGrid control.
Row   The row number to get.
Col   The column number to get.

Return Value Variant

Returns a String "Error: " & Description if an error occurs, otherwise the current value in the referenced cell.

Data Type

Row  Long
Col  Long