Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

LDAP.SearchResult.AttributeValuesByName

Returns the values for an attribute in an entry.

Component Version macOS Windows Linux Server iOS SDK
LDAP 7.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ❌ No
MBS( "LDAP.SearchResult.AttributeValuesByName"; LDAPRef; EntryIndex; AttributeName { ; NoReturnEnding } )   More

Parameters

Parameter Description Example Flags
LDAPRef The reference number for the LDAP connection. $ldap
EntryIndex The index in the search results.
Range from 0 to LDAP.SearchResult.EntryCount-1.
$index
AttributeName The name of the attribute. "FirstName"
NoReturnEnding Pass 1 to have no extra newline character on the end of the returned list. Default is 1 to include none, so a list with one value behaves as a text value. 1 Optional

Result

Returns value, list or error.

Description

Returns the values for an attribute in an entry.
This function searches attributes by name instead of index.
If nothing is found, you get empty result.

See also

Release notes

Blog Entries

Created 7th September 2017, last changed 7th September 2017


LDAP.SearchResult.AttributeValues - LDAP.SearchResult.Count

Feedback: Report problem or ask question.