View Single Post
Old 06-19-2009   #8 (permalink)
Sander


 
 

Re: working LDAP query, well almost.. 800A000D

Thats exactly what i did ;]

Thanks again James & Richard!



"James Whitlow" <jwhitlow.60372693@xxxxxx> wrote in message
news:%23ba8eAQ8JHA.1336@xxxxxx
Quote:

> "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxx> wrote in
> message news:ee8CVqP8JHA.5400@xxxxxx
Quote:

>> The description attribute is a strange one, because technically it is
>> multi-valued, even though there is never more than one value. ADO
>> retrieves it as an string array with one value, or a Null if there is no
>> value assigned.
>
> Sander, to Richard's point, you should probably do an IsArray test before
> using the Join method to prevent an exception in the event that it is
> empty.
>
> sDescription = objRSUserDescr.Fields("description").Value
>
> If IsArray(sDescription) Then
> sDescription = Join(sDescription, Empty)
> Else
> sDescription = Empty
> End If
>
> WScript.Echo sDescription
>
>
My System SpecsSystem Spec