Delphi (TrkIntf.pas)
type
|
TEnumTemplates = function ( Data: Pointer; ID: Cardinal; Name, Description: String; Scope: Word; Default: Boolean ): Boolean;
|
|
function TrkEnumTemplates( EnumProc: TEnumTemplates; Data: Pointer ): Integer;
|
Parameters
Name
|
Description
|
EnumProc
|
The procedure (prototype TEnumTemplates) that will be called for each Template in the repository.
|
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
TEnumTemplates is the prototype of the procedure that is called by TrkEnumTemplates. This function should return True to continue enumerating the templates, or False to terminate the enumeration. The Enumeration procedure receives the following parameters, describing each Template:
Name
|
Description
|
Data
|
The Data parameter as passed into the enumerator. Can be nil
|
ID
|
Unique ID used to identify the Template within the repository.
|
Name
|
Name of the Template
|
Description
|
Description of the Template
|
Scope
|
The scope of the Template. 0 = Screen, 1 = Page Report, 2 = List Report
|
Default
|
True if the template is the default template for the indicated Scope.
|
Exported
type
|
TIntEnumTemplates = function ( Context, Data: Pointer; ID: Cardinal; pName, pDescription: PChar; Scope: Word; Default: Boolean ): Boolean; stdcall;
|
|
function TCDTrkEnumTemplates( Context, Data: Pointer; EnumProc: TIntEnumProjects ): Integer; stdcall;
|
© 1995-2018 MCN Software