TCDSTrkEnumFields
Return to Introduction  Previous page  Next page
Enumerates through the list of fields of the issue identified by IssueID, including User Defined fields.

Delphi (TrkIntf.pas)

type  
  TEnumFields = function ( Data: Pointer; FieldName, FieldValue: String; FieldType: Word; UserDefined: Boolean ): Boolean;  
 
function TrkEnumFieldsSv( Handle, IssueID: Cardinal; EnumProc: TEnumFields; Data: Pointer ): Integer;  
 
 
Parameters

Name
Description
Handle
A valid Handle used to identify the User.
IssueID
The ID of the Issue to enumerate.
EnumProc
The procedure (prototype TEnumRevisions) that will be called for each revision 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

TEnumFields is the prototype of the procedure that is called by TrkEnumFieldsSv. This function should return True to continue enumerating the revisions, or False to terminate the enumeration. The Enumeration procedure receives the following parameters, describing each Fields:

Name
Description
Data
The Data parameter as passed into the enumerator. Can be nil
FieldName
Name of the field
FieldValue
Current value of the field
FieldType
The type of the field. See also Type Definitions
UserDefined
True if the field is a User Defined field.



Exported

type  
  TIntEnumFields = function ( Context, Data: Pointer; pFieldName, pFieldValue: PChar; FieldType: Word; UserDefined: Boolean ): Boolean; stdcall;  
 
function TCDSTrkEnumFields( Handle, IssueID: Cardinal; Context, Data: Pointer; EnumProc: TIntEnumFields ): Integer; stdcall;  
 


 


© 1995-2018 MCN Software