Function EN Version 10.02

@ADSISearchObjectGetFirstRow

Internet

Syntax

@ADSISearchObjectGetFirstRow(ADSIHANDLE;ADSISEARCHRESULT);

Description

Retrieves the first row of the search result.

Return:
In case of an error, @Error; in case of success, TRUE; and if no row is available anymore, FALSE.

ADSIHANDLE:
ADSIHANDLE through which the connection was opened via @ADSIOpenSearchObject to the DC was established.

ADSISEARCHRESULT:
Ein ADSISEARCHRESULTHANDLE, which was created via @ADSISearchObjectExecuteSearch was created.

Example: @ADSISearchObjectGetFirstRow(ADSIHANDLE;ADSISEARCHRESULT);

ADSISearchResult:=@ADSISearchObjectExecuteSearch(ADSIObj;"(&(objectCategory=person)(objectClass=user))");
Loop:=@ADSISearchObjectGetFirstRow(ADSIObj;ADSISearchResult);

This example outputs the data from all columns of all user objects for the DC "mycompany" to the ApiLog (limited to MaxRows=11).

Note : This text was machine-translated and may contain inaccuracies.