TCDTrkEnumIssues
Return to Introduction  Previous page  Next page
Enumerates through the list of Files contained by the folder identified by RootID and calls the passed function.

Delphi (TrkIntf.pas)

type  
  TEnumIssues = function ( Data: Pointer; Name: String; ID: Cardinal; IssueData: PTrkBaseIssue ): Boolean;  
 
function TrkEnumIssues( RootID: Cardinal; EnumProc: TEnumFiles; Data: Pointer ): Integer;  

Parameters

Name
Description
RootID
The ID of the Project, Folder, or Query that the enumeration starts from.
EnumProc
The procedure (prototype TEnumIssues) that will be called for each Issue found.
Data
Pointer to additional information that can be passed to the EnumProc in the Data parameter.


Return Value

Err_OK if successful or an error code indicating the error.

Remarks

TEnumIssues is the prototype of the procedure that is called by TrkEnumIssues. This function should return True to continue enumerating the issues, or False to terminate the enumeration. The Enumeration procedure receives the following parameters, describing each Issue:

Name
Description
Data
The Data parameter as passed into the enumerator. Can be nil
Name
Name of the Issue
ID
The unique ID used to identify this issue
IssueData
Record (of type PTrkBaseIssue) holding basic information about the issue.


Exported

type  
  TIntEnumIssues = function ( Context, Data: Pointer; pName: PChar; ID: Cardinal; IssueData: PTrkBaseIssue ): Boolean; stdcall;  
 
function TCDTrkEnumIssues( RootID: Cardinal; Context, Data: Pointer; EnumProc: TIntEnumIssues ): Integer; stdcall;  

 


© 1995-2018 MCN Software