View Single Post
Old 06-19-2009   #5 (permalink)
James Whitlow


 
 

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

"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