Well what i mean is no difference than before - expected expression. I am using the last code posted on the fnLDAPQuery link and I am using the code posted below:

Call "fnLDAPQuery.kix"

$=SetOption("WrapAtEOL","on")
$=SetOption("NoVarsInStrings","on")
;$=SetOption("Explicit","on")

Dim $sWhat,$sFrom,$sFilter,$sScope,$aResults,$Result,$R,$

$sWhat = "ADsPath","Name","department","physicalDeliveryOfficeName"

$sFrom = "LDAP://"+GetObject("LDAP://rootDSE").Get("defaultNamingContext")

$sFilter = "(&(objectCategory=user)(Name=sh*))"

$sScope = "subtree"

$aResults = fnLDAPQuery($sWhat,$sFrom,$sFilter,"displayName ASC",$sScope)
@ERROR " : " @SERROR ?

For Each $Result In $aResults
If VarType($Result)>8192
For Each $R In $Result
$R ?
Next
Else
$Result ?
EndIf
Next


Edited by DJ Ballistic (2005-06-15 07:22 PM)