Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TCustomdxPSExplorer.FindCustomItemByUniqueID(TBytes) Method

Returns the folder or item by its unique ID.

#Declaration

Delphi
function FindCustomItemByUniqueID(const AnUniqueID: TBytes): TCustomdxPSExplorerItem; virtual;

#Parameters

Name Type
AnUniqueID TBytes

#Returns

Type
TCustomdxPSExplorerItem

#Remarks

As implemented in the TCustomdxPSExplorer class the FindCustomItemByUniqueID method simply returns nil. Descendants override this method to implement their specific search functionality.

This method searches for the folder or item whose ID matches the AnUniqueID parameter. For file explorers, you must specify a pointer of the PShortString type as this parameter, the referred string must contain the full path to the file or folder you want to obtain. For database explorers, you need to specify the pointer of the PdxDBBasedExplorerItemUniqueID type as the parameter. The pointer refers to a TdxDBBasedExplorerItemUniqueID structure that identifies the item type (folder or not) and the item ID.

Note

An item’s unique ID can be obtained using the item’s GetUniqueID method.

See Also