Microsoft SDK for Java

getValue

This method of the AdoProperty class retrieves the value assigned to a Field, Parameter, or AdoProperty object.

Syntax

public Variant getValue();

Return Value

Returns a VARIANT value whose default value depends on the data type.

Use getValue and setValue to set or return data from Field objects, to set or return parameter values with Parameter objects, or to set or return property settings with Property objects. Whether the value is read/write or read-only depends upon numerous factors. See the respective object topics for more information.

ADO allows setting and returning long binary data with getValue and setValue.

Note   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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.