Value Method

Object List Next Object

Defined By:
Dynaset

Description:

Returns the character string represented by the object.

Declaration:

Function Value() As String

Details:

Use the Value method when you want to "convert-to-text" the output of the Dynaset methods that return "objects." For example, the following code prints the following results.

Dim o As Object
Dim s As String

o = Form1.<Dynaset>.Row(0).Column(0)
Debug.Print o

Dynaset@fe:000000:00dd384c

s = Form1.<Dynaset>.Row(0).Column(0).Value
Debug.Print s

CIMLINC Itasca

If the returned value is assigned to a numeric variable, Phoenix will attempt to convert it. (i.e. the string 23.45 will be converted to 23.45 if assigned to a Single or Double, and to 23 is assigned to an integer or long. A will throw a conversion to type exception).