Function EN Version 10.02

@ADSISearchObjectGetColumnData

Internet

Syntax

@ADSISearchObjectGetColumnData(ADSIObj;ADSISearchResult;ColName;ColData);

Description

Retrieves the next column of the search result.
Return:
In case of an error, @Error; in case of success, TRUE; and if no further column is available, FALSE.

TEXT ColName:
Returns the column name.

ColData:
Where possible, the data is converted to the corresponding Engine data type.
In most cases, lists are returned.
If a data type is unknown, the text "UNSUPPORTED DATATYPE (X)" is returned, where X denotes the data type on the ADSI side.
For a SECURITY DESCRIPTOR "SECURITY DESCRIPTOR" is returned; the data type cannot be converted meaningfully.
If a column exceeds the maximum field size allowed in the Engine, "ITEM TOO BIG" is returned.
For a column with the ADSI data type "ADSTYPE_LARGE_INTEGER" a TEXTLIST is returned.
The data type may contain multiple values.
It can contain time values, possibly with special values such as "NEVER EXPIRES" or "NO VALUE" or complex numeric values.
Errors may also occur when converting the time values; these are then signaled in the respective TEXTELEMENT.
The calculation for such time values starts on 01/01/1601 (in 100-nanosecond steps), so a NULL value returns such a date.
Complex numeric values are returned in the form "H:X L:Y Q:Z".
"H" stands for HighPart (DWORD)
"L" stands for LowPart (int)
"Q" stands for QuadPart (I64 int)
Under certain circumstances, a variable with the POTVAR data type may also be returned.

Example: @ADSISearchObjectGetColumnData(ADSIObj;ADSISearchResult;ColName;ColData);

More:=@ADSISearchObjectGetColumnData(ADSIObj;ADSISearchResult;ColName;ColData);

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.