Skip to main content

TdxPSDBBasedExplorer.FindFolderByID(Integer) Method

Returns a folder by its ID.

Declaration

function FindFolderByID(AnID: Integer): TdxPSDBBasedExplorerFolder; virtual;

Parameters

Name Type
AnID Integer

Returns

Type
TdxPSDBBasedExplorerFolder

Remarks

Use the FindFolderByID method to obtain a folder object with the specified ID. The desired folder’s ID should be passed as the AnID parameter. If the Folders dataset doesn’t contain a folder with the ID specified, the method returns nil.

Note that you can also use the base class’ FindCustomItemByUniqueID method to access folders and items by their IDs. If you need to access a particular report item, use the FindItemByID method.

If you need to obtain a folder by its name, you may use the Folders dataset to locate the desired record, retrieve the desired folder’s ID and pass it to the FindFolderByID method.

See Also