Help Center

CADOParameter.Valueproperty

Indicates the value assigned to a **Parameter** object.

DatabasespropertyCADOCommand.incdocumented

Syntax

PROPERTY Value () AS DVARIANT
PROPERTY Value (BYREF dvValue AS DVARIANT)

Parameters

NameDescription
cvValueThe value of the Parameter object.

Return value

The value of the Parameter object.

Description

Indicates the value assigned to a Parameter object.

Remarks

Use the Value property to set or return parameter values with Parameter objects.

ADO allows setting and returning long binary data with the Value property.

For Parameter objects, ADO reads the Value property only once from the provider. If a command contains a Parameter whose Value property is empty, and you create a Recordset from the command, ensure that you first close the Recordset before retrieving the Value property. Otherwise, for some providers, the Value property may be empty, and won't contain the correct value.

Reference

  • Include file CADOCommand.inc
  • Defined in AfxNova/CAdoParameters.inc:166
  • Documented in Databases/ADO Classes/CAdoCommand Class.md
  • Topic: CAdoCommand Class