Re: multi-valued attributes

From: Frank Hickman [MVP] (fhickman_NOSP_at_M_noblesoft.com)
Date: 01/27/05


Date: Thu, 27 Jan 2005 02:25:10 -0500


"stanley" <stanley@discussions.microsoft.com> wrote in message
news:8B64CAB1-1A7F-40F7-92EA-E89C2AACC07E@microsoft.com...
> hello all
> i am still looking for an answer or example how can i get an 'adVariant'
> value from an ado Recordset Field,
> i found an examle on the web but it's a vb code
> maby someone can show my how to write the same code in c++?
> the problem is that in c++ the Field.Value is expect no index or param
> like
> in the vb example
>
> the vb code:
>
> If rs.Fields(i).Type = adVariant And Not (IsNull(rs.Fields(i).Value)) Then
> Debug.Print rs.Fields(i).Name, " = "
> For j = LBound(rs.Fields(i).Value) To
> UBound(rs.Fields(i).Value)
> Debug.Print CStr(rs.Fields(i).Value(j)), " # "
> Next j
>
>
> thanks
> stanley
>

Using what access technology? If your attempting to use ADO, here's a
snippet from MSDN on the use of adVariant field types...

"This data type is currently not supported by ADO. Usage may cause
unpredictable results."

-- 
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.